更新mqtt支持
This commit is contained in:
parent
3ec596d8ef
commit
d30d564edd
|
|
@ -102,8 +102,7 @@ public class MyMqttCallback implements MqttCallbackExtended {
|
||||||
try {
|
try {
|
||||||
if (topic.startsWith(IotInerfaceTopicType.DTU_TOPIC.getCode())) {
|
if (topic.startsWith(IotInerfaceTopicType.DTU_TOPIC.getCode())) {
|
||||||
log.warn("fe-check=======================" + mqttMessage.getPayload());
|
log.warn("fe-check=======================" + mqttMessage.getPayload());
|
||||||
//识别主题,确认设备
|
//识别主题,确认设备 todo 处理消息逻辑
|
||||||
deviceService.processInterface(topic, mqttMessage.getPayload());
|
|
||||||
} else if (topic.startsWith(IotInerfaceTopicType.LH_IOT_TOPIC_UP.getCode())) {//蓝海虚拟设备上行逻辑
|
} else if (topic.startsWith(IotInerfaceTopicType.LH_IOT_TOPIC_UP.getCode())) {//蓝海虚拟设备上行逻辑
|
||||||
//暂时无业务
|
//暂时无业务
|
||||||
} else if (topic.contains(IotInerfaceTopicType.LH_IOT_TOPIC_DOWN.getCode())) {//蓝海虚拟设备下行逻辑,处理控制
|
} else if (topic.contains(IotInerfaceTopicType.LH_IOT_TOPIC_DOWN.getCode())) {//蓝海虚拟设备下行逻辑,处理控制
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue