BLE reason codes

Johannes Hutter

Hello Zephyr community,

if the connection between a BLE peripheral running Zephyr and a central device is lost, the "disconnected" callback is fired that passes the "reason code". I can't find any definitions of those disconnect reasons in the included bluetooth headers, but as I understand it they are part of the HCI error codes. Is there a reason not all of the possible error codes are defined in hci.h?

Thanks and best regards,



Johannes Hutter | Embedded Software Engineer
Mail: johannes@...

Workaround GmbH (ProGlove)
Friedenstr. 4 | 81671 München

Managing Director: Thomas Kirchner
HRB: 216605 | AG München
USt.-IdNr.: DE298859320

Join to automatically receive all group messages.