电表接入2

parent 59999959
import { processDeviceData} from "../biz/mqttClient";
import { electricDeviceData} from "../biz/mqttClient";
import { systemConfig } from "../config/serverConfig";
const mqtt = require('mqtt');
......@@ -35,7 +35,7 @@ export async function startMqttClient() {
client.on('message', (topic, message) => {
// 只处理配置的上行主题
if (topic === systemConfig.mqttsrv.topic_env) {
processDeviceData(message);
electricDeviceData(message);
}
});
......
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 to comment