初始提交
This commit is contained in:
17
bin/handler/MqttHandler.dart
Normal file
17
bin/handler/MqttHandler.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
class MqttHandler {
|
||||
|
||||
|
||||
// 报警处理 单独线程 todo
|
||||
void message(String topic, String msg) {
|
||||
// print("topic: $topic, msg:$msg");
|
||||
try {
|
||||
// statisticsService.saveDeviceStatus(msg);
|
||||
// alarmRuleService.judgeInstantAlarm(msg);
|
||||
} catch (e) {
|
||||
// print(e);
|
||||
}
|
||||
//遍历路径获取匹配的topic 进行websocket数据转发
|
||||
// _topicPathHandler.forwardMessageByTopic(topic, msg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user