0

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 !

asked May 10, 2021 at 15:58

1 Answer 1

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.

answered May 11, 2021 at 4:32
Sign up to request clarification or add additional context in comments.

1 Comment

Note that if the devices are bonded, the central may use cached services. In that case, the peripheral shall use this characteristic to indicate what range has been updated.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.