提交 3b6c5fb6 authored 作者: linzhenjie's avatar linzhenjie

添加设备bug修复

上级 e7ef0b47
......@@ -71,7 +71,7 @@ public class MqttService {
if (redisUtils.hasKey("device:save:GL" + mac)) {
log.debug("添加设备:{}", mac);
String[] userId = redisUtils.get("device:save:GL" + mac).split("-");
String deviceFlag = "0"+msg.substring(4,6);
String deviceFlag = topics[1].substring(0,3);
// int dnleng = Integer.valueOf(msg.substring(32, 34), 16);
// String deviceNo = ByteUtils.hexToString(msg.substring(34, 34 + dnleng));
log.info("deviceNo:{}", topics[1]);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论