Okay, I've run into an interesting scenario.
SDK 17.0.2
NRF 52840 (DK)
I am coding a multiperipharal service on a multiperipheral ble device.
My attempt at updating all connected peers with for a notifiable characteristic has failed as my service is designed to be BLE handle aware (based off the NUS Example) and I did not define an array of those services. Basically I fail past the first connected peer, most likely as a disconnect/connect changes the ble handle assigned to the instantiated service.
I did not define an array of services, and then iterate over interacting with them. I defined one and the existing service is based of the NUS service which has a connection handle assigned and deassigned from the service.
Is there an example of a way to remove the handle associated with a service, and give the same service interaction to all connected devices regardless of handle?
Does this makes sense?
I really don't have need to define an array of services, since the data and manipulation will be the same 1 to many interaction.
Are there any example multiperipheral services that exhibit this kind of behavior or will I need to modify my current one.
My options as I see them write now:
1) Define an array of services. Exactly as the NUS service does this. However, then all my current interactions with the service will need to seemingly iterates of handles.
2) Modify the existing service to somehow ignore device handle checks, and treat all service updates somehow for all connection handles.