我从 Linux 连接到具有低功耗蓝牙 (BLE 4.2) 的微 Controller 。 目前我可以通过 gatttool (-I) 和 bluetoothctl 连接,但我无法发送/接收数据。
我发现它无法将 rfcomm 与 BLE 一起使用。
如何接收数据?
最佳答案
我已经解决了我的问题并想与您分享。
使用连接到设备后
gatttool -b XX:XX:XX:XX:XX -I
> char-read-uuid 2902
> handle: 0x000b value: 00 00
我已启用通知
> char-write-req 000b 0100
然后我收到了从微 Controller 发送的所有数据。
关于linux - 使用 Gatttool(低功耗蓝牙)发送/接收数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51925554/