Following off of this question:
Corebluetooth, How to get a unique UUID?
After connecting to a peripheral, I can retrieve its CFUUIDRef
, which is unique, and can use it to reconnect via retrievePeripherals
. However, I have found that I can not use it to reconnect after closing the application.
Is the unique UUID
generated after a connection only valid for the lifetime of the application or are we supposed to be able to save it for later use? I am trying to have my application remember one particular peripheral, but besides peripheral.UUID
, I don't know of any other unique identifiers.