常量调整
parent
c90bfbc685
commit
447e481111
|
@ -1,5 +1,6 @@
|
||||||
package cc.iotkit.manager.controller.aligenie;
|
package cc.iotkit.manager.controller.aligenie;
|
||||||
|
|
||||||
|
import cc.iotkit.common.Constants;
|
||||||
import cc.iotkit.common.exception.BizException;
|
import cc.iotkit.common.exception.BizException;
|
||||||
import cc.iotkit.common.exception.OfflineException;
|
import cc.iotkit.common.exception.OfflineException;
|
||||||
import cc.iotkit.common.utils.JsonUtil;
|
import cc.iotkit.common.utils.JsonUtil;
|
||||||
|
@ -65,7 +66,7 @@ public class AligenieDeviceController {
|
||||||
.serviceUrl(pulsarBrokerUrl)
|
.serviceUrl(pulsarBrokerUrl)
|
||||||
.build();
|
.build();
|
||||||
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
|
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
|
||||||
.topic("persistent://iotkit/default/device_thing")
|
.topic("persistent://iotkit/default/" + Constants.THING_MODEL_MESSAGE_TOPIC)
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class DeviceBehaviourService {
|
||||||
.serviceUrl(serverConfig.getPulsarBrokerUrl())
|
.serviceUrl(serverConfig.getPulsarBrokerUrl())
|
||||||
.build();
|
.build();
|
||||||
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
|
deviceMessageProducer = client.newProducer(JSONSchema.of(ThingModelMessage.class))
|
||||||
.topic("persistent://iotkit/default/device_thing")
|
.topic("persistent://iotkit/default/" + Constants.THING_MODEL_MESSAGE_TOPIC)
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue