I’ve started experimenting with 1.3.0-rc1 and have run into a few important issues around bluetooth that I was wondering if people know how to address:
BleAddresses are backwards. When I scan devices with nRF Connect and get addresses like
00:11:22:33:44:44, but when I scan with my Argon, I get
I can’t find an easy way to construct BleAddresses. There is a specific address I want to connect to; I might as well specify it as a constant in my file. What’s the right way to do this?
Connectivity has been an issue. When my device and the device I want to connect to first boot up, I get a peer connection without a problem. If I call
BLE.disconnect, I can then reconnect them. This is great.
However, if I reboot the Argon without calling disconnect first, they will no longer reconnect, unless I reboot the target device as well. I don’t have this issue when I connect to it from my phone or computer. The problem seems specific to the Argon. For example:
- Turn device and Argon on.
- Connect them - success.
- Unplug Argon.
- Turn Argon back on, try to connect - failure.
- [repeat as desired - failure]
- Connect phone to device - success
- Disconnect phone.
- [repeat as desired - success]
- Turn Argon on, try to connect - failure.
- Reboot target device.
- Turn Argon on, try to connect - success.