Commit e62fb0ce by 罗志长

fix: 设备状态

parent 10270423
......@@ -277,12 +277,11 @@ public class PushCallback implements MqttCallbackExtended {
* 处理设备状态
*/
public void handleStatus(DeviceInfo device) {
if (!REPORT_PROPERTY.equals(device.getMessageType())) {
return;
}
CompletableFuture.runAsync(() -> {
// 处理设备故障
platDeviceService.handleFault(device);
if (REPORT_PROPERTY.equals(device.getMessageType())) {
// 处理设备故障
platDeviceService.handleFault(device);
}
// 更新设备状态
platDeviceService.updateDeviceStatus(device.getMessageType(), device.getDeviceId(), "");
}, taskExecutor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment