|
发表于 2021-8-21 02:39:43
|
显示全部楼层
dev mode设置为1,在com口输出如下,下面状态改变是因为关闭ble,然后打开。然后就一直改变成状态0
14:33:39.940 -> [startBLEScan] start Scan...
14:33:54.958 -> [startBLEScan] scan finish device count-->23
14:33:54.958 -> [scanResultHandle]start process...
14:33:55.004 -> [scanResultHandle]User1-->1
14:33:55.004 -> [scanResultHandle]User2-->0
14:33:55.004 -> {"User1":{"currentState":1,"originalState":1},"User2":{"currentState":0,"originalState":0}}
14:33:55.004 -> [scanResultHandle]send scan result...
14:33:55.004 -> [scanResultHandle]send scan result finish
14:33:55.004 -> [scanResultHandle]handle finished!
14:33:56.967 -> [startBLEScan] start Scan...
14:34:12.002 -> [startBLEScan] scan finish device count-->22
14:34:12.002 -> [scanResultHandle]start process...
14:34:12.002 -> [scanResultHandle]User1-->1
14:34:12.002 -> [scanResultHandle]User2-->0
14:34:12.002 -> {"User1":{"currentState":1,"originalState":1},"User2":{"currentState":0,"originalState":0}}
14:34:12.002 -> [scanResultHandle]send scan result...
14:34:12.002 -> [scanResultHandle]send scan result finish
14:34:12.002 -> [scanResultHandle]handle finished!
14:34:14.013 -> [startBLEScan] start Scan...
14:34:29.007 -> [startBLEScan] scan finish device count-->22
14:34:29.054 -> [scanResultHandle]start process...
14:34:29.054 -> [scanResultHandle]user User1 has change
14:34:29.054 -> [scanResultHandle]User1-->0
14:34:29.054 -> [scanResultHandle]User2-->0
14:34:29.054 -> {"User1":{"currentState":0,"originalState":1},"User2":{"currentState":0,"originalState":0}}
14:34:29.054 -> [scanResultHandle]send scan result...
14:34:29.054 -> [scanResultHandle]send scan result finish
14:34:29.054 -> [scanResultHandle]handle finished!
14:34:31.017 -> [startBLEScan] start Scan...
14:34:46.048 -> [startBLEScan] scan finish device count-->22
14:34:46.048 -> [scanResultHandle]start process...
14:34:46.095 -> [scanResultHandle]User1-->0
14:34:46.095 -> [scanResultHandle]User2-->0
14:34:46.095 -> {"User1":{"currentState":0,"originalState":0},"User2":{"currentState":0,"originalState":0}}
14:34:46.095 -> [scanResultHandle]send scan result...
14:34:46.095 -> [scanResultHandle]send scan result finish
14:34:46.095 -> [scanResultHandle]handle finished!
谢谢分享这个项目,如果有别的debug模式,也可以试试...
谢谢! |
|