jrowberg / bglib

BGLib implementation for Bluegiga BLE Bluetooth Smart modules
Other
240 stars 170 forks source link

interpreting Bluegiga.BLE.Events.Connection.DisconnectedEventArgs.reason #48

Closed fschwiet closed 6 years ago

fschwiet commented 6 years ago

Where can I look up the meaning of status codes for Bluegiga.BLE.Events.Connection.DisconnectedEventArgs.reason? I was seeing 0x208 as the DisconnectedEventArgs.reason.

I see 0x208 defined as connection timeout in https://www.silabs.com/documents/login/reference-manuals/Bluetooth_Smart_Software-BLE-1.6-API-RM.pdf in section 5.11.1 “BGAPI errors”, but I'm not sure the documentation applies to DisconnectedEventArgs.reason.

mjbrown commented 6 years ago

It is in the BGAPI main documentation near the bottom. Or there's a lookup table in Python here: https://github.com/mjbrown/bgapi/blob/master/bgapi/cmd_def.py

fschwiet commented 6 years ago

Great, thank you.