Indicating Service Changed Protocomm Provisioning using BLE
Posted: Tue Aug 17, 2021 7:35 am
Hi! I've implemented provisioning using protocomm with BLE (nimble) as the transport. Now, I am trying to add a new characteristic to the service in order to obtain some additional information about the device. Adding the characteristic has been no trouble, and shows up correctly when scanning & discovering from my PC. However, the device is coupled with a mobile app, and iOS is using the cached characteristics from the previous version of the firmware. From my research, it seems that iOS requires the service changed indicator in order to rediscover services & characteristics, otherwise it uses cached versions. I've searched quite a bit and can't seem to find an example of adding the service changed indicator when using protocomm with BLE (though I think regular ble servers use ble_svc_gatt_changed).
As far as I can tell, I need to use the service changed indicator in order for the phone to stop using the cached characteristics which does not include the new endpoint. Any advice on how to do so in conjunction with protocomm would be appreciated.
Thanks!
As far as I can tell, I need to use the service changed indicator in order for the phone to stop using the cached characteristics which does not include the new endpoint. Any advice on how to do so in conjunction with protocomm would be appreciated.
Thanks!