NULL value for BLE conn_id

JayLogue
Posts: 19
Joined: Sat Apr 21, 2018 4:44 pm

NULL value for BLE conn_id

Postby JayLogue » Sat Apr 21, 2018 5:13 pm

Is there a formal "NULL" value for the conn_id value used in the BLE--i.e. a value which can be used to represent "no connection", and which the BLE stack will never assign as a connection id? Is this NULL value defined somewhere in the API?

My reading of GATT_GetConnectionInfor() and gatt_get_regcb() suggests that the value of conn_id can never be zero. However the code is convoluted and I might be missing something.

Thanks.

JayLogue
Posts: 19
Joined: Sat Apr 21, 2018 4:44 pm

Re: NULL value for BLE conn_id

Postby JayLogue » Sun Apr 22, 2018 2:53 pm

Well, I've confirmed that 0 is a valid conn_id, so perhaps 0xFFFF is a suitable NULL value.

Who is online

Users browsing this forum: Google [Bot] and 145 guests