I have a simple app that connects to a ble device connected to an arduino that reads sensor data.
What I want the app to do is this:
When it opens, scan for ble devices
If after 10 seconds it can’t find any, prompt to scan again or exit
If device found, connect with the specific address and start reading the values
But it seems to fall over when scanning for devices. As soon as the app opens it says “Runtime Error - Not connected to a Bluetooth low energy device.” with an “End Application” button.