We are working Bluetooth device for connection perform the read/write operations. Bluetooth services Not going to update once we connect Bluetooth device. If we have added new read/write BLE service characteristics then we need to reset iPhone.
We are doing the below steps
Initially we connect to Bluetooth Device. we are perform the READ and WRITE all services. But if Bluetooth device firmware version Updated and this version we have added new BLE service characteristics, in that case I am not able to get new BLE service in iOS device iPhone and iPad.
I have to reset all device and then i can get new updated services from Bluetooth Device.
How we can fix this issue on iOS swift.
Thanks in advance !
1 Answer 1
You can solve your problem by providing the service changed characteristic on your BLE device. Take the Accessory Design Guidelines as a reference. It states at 11.12.2 (emphasis mine):
The accessory must implement the Service Changed characteristic only if the accessory has the ability to change its services during its lifetime.
Simply implementing this will force your iPhone and iPad to always read the services and characteristics from the device instead from the cache. This is explained here.
Other than resetting your devices Bluetooth adapter I am not aware of another way to reset the cache.
1 Comment
Explore related questions
See similar questions with these tags.