更新mqtt支持
This commit is contained in:
parent
d30d564edd
commit
0a8d1e6681
|
|
@ -103,9 +103,9 @@ public class MyMqttCallback implements MqttCallbackExtended {
|
|||
if (topic.startsWith(IotInerfaceTopicType.DTU_TOPIC.getCode())) {
|
||||
log.warn("fe-check=======================" + mqttMessage.getPayload());
|
||||
//识别主题,确认设备 todo 处理消息逻辑
|
||||
} else if (topic.startsWith(IotInerfaceTopicType.LH_IOT_TOPIC_UP.getCode())) {//蓝海虚拟设备上行逻辑
|
||||
} else if (topic.startsWith(IotInerfaceTopicType.LH_IOT_TOPIC_DOWN.getCode())) {//蓝海虚拟设备下行逻辑
|
||||
//暂时无业务
|
||||
} else if (topic.contains(IotInerfaceTopicType.LH_IOT_TOPIC_DOWN.getCode())) {//蓝海虚拟设备下行逻辑,处理控制
|
||||
} else if (topic.contains(IotInerfaceTopicType.LH_IOT_TOPIC_UP.getCode())) {//蓝海虚拟设备上行逻辑,处理控制
|
||||
// 尝试获取锁,等待3秒,重试间隔100ms
|
||||
try {
|
||||
// Boolean lock = RedisDistributedLock2.getLock("mqtt_receive_logic:__"+topic+"_"+o1.hashCode(),2);
|
||||
|
|
|
|||
Loading…
Reference in New Issue