CoreBluetooth: What is the lifetime of unique UUIDs

Long story short, YES you can use the UUID to reconnect to the same device even after you close the application (in exactly the way you say).

I assume however, that you are not actually pairing with peripheral. That’s a big problem right there. You need to actually establish the pairing request and get the peripheral to show up in the bluetooth table. The UUID will then be solidified with the iOS device and will remain until you flush the Network Settings of the iOS device.

The other possibility is that your BLE device has a firmware problem, wherein after you disconnect, it forces itself into advertising mode or something. This will also mess with your ability to reconnect. Let me know if you have any questions!

Leave a Comment