设备控制
parent
28c357ddf5
commit
cbb0ea27f5
|
|
@ -60,7 +60,7 @@ public class MqttMessageDispatcher {
|
|||
// log.info("【MQTT接收】topic={}, payload={}", topic, payload);
|
||||
|
||||
// 设备状态主题:dtu/{deviceId}/up
|
||||
if (topic.matches("dtu/\\w+/\\w")) {
|
||||
if (topic.matches("dtu/\\w+/\\w+")) {
|
||||
deviceStatusHandler.handle(topic, payload);
|
||||
}
|
||||
// 处理前端控制指令主题:frontend/{clientId}/control/{deviceId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue