Page 1 of 1

NULL value for BLE conn_id

Posted: Sat Apr 21, 2018 5:13 pm
by JayLogue
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.

Re: NULL value for BLE conn_id

Posted: Sun Apr 22, 2018 2:53 pm
by JayLogue
Well, I've confirmed that 0 is a valid conn_id, so perhaps 0xFFFF is a suitable NULL value.