So I'm able to detect, connect, and communicate with my bluetooth device. I would like to be able to automatically restore this connection when the app starts up cold.
While the user is unlikely to have more than one of the same device, it's possible. Also, down the road if more devices are supported I need a way to distinguish between (potentially) one or more devices that aren't the same make/model.
Due to some limitations with what I can get out of the ScanResult, I can't detect the device's address or anything usable to uniquely identify it, so I'm trying to figure out how to recognize that a device has been previously selected by the user.
Can I store an entire ScanResult to storage and use isSameDevice() ? Is there some way I can query ScanResult/Device/... to try and get the device address?
Or do I have to blindly scan and cross my fingers hoping to find the device that was selected?