mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
fix:解决设备运行状态无法显示问题https://gitee.com/beecue/fastbee/issues/
This commit is contained in:
@@ -420,9 +420,6 @@ export default {
|
|||||||
/* Mqtt回调处理 */
|
/* Mqtt回调处理 */
|
||||||
mqttCallback() {
|
mqttCallback() {
|
||||||
this.$mqttTool.client.on('message', (topic, message, buffer) => {
|
this.$mqttTool.client.on('message', (topic, message, buffer) => {
|
||||||
if (message instanceof Uint8Array) {
|
|
||||||
message = new TextDecoder().decode(message);
|
|
||||||
}
|
|
||||||
let topics = topic.split('/');
|
let topics = topic.split('/');
|
||||||
let productId = topics[1];
|
let productId = topics[1];
|
||||||
let deviceNum = topics[2];
|
let deviceNum = topics[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user