This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_GAP_EVT_TIMEOUT and BLE_GAP_EVT_DISCONNECTED

Hello,

am I right in assuming the following?

  • BLE_GAP_EVT_TIMEOUT with source BLE_GAP_TIMEOUT_SRC_CONN is only returned when a Central is establishing a connection and this establishment times out. Which means that it can never happen for a link where the device is Peripheral.
  • BLE_GAP_EVT_DISCONNECTED is used whenever a Connection is terminated after a BLE_GAP_EVT_CONNECTED has been created. Both for Central and for Peripheral links.

If yes, I guess that the message Sequence chart is missing a Variant #4 with the disconnected event. I also found the naming of BLE_GAP_TIMEOUT_SRC_CONN a little inconvenient because it does not state if it's a timeout from a connection or a timeout of the connecting procedure.

GAP Central connection chart

Thanks

Parents Reply Children
No Data
Related