I am trying to connect an android phone (Asus ZenFone Max) to my Arduino Nano 33 BLE, but i have some trouble with the Buetooth paring.
I compiled and uploaded the battery monitor example successfully to my Arduino Nano 33 BLE.
At my Android Phone i can find the Arduino Nano via bluetooth, but when i try to pair my phone with the arduino it fails every time, without any error message on my Phone.
While selecting my Arduino and try to pairing, i get the message (on my Arduino) that the device is connected and sending the battrery percentage over bluetooth. But after the paring fails my Arduino say that the device is disconnected.
I tried it with another android phone (Xiaomi Redmi x4) but it changed nothing.
In Bluetooth LE pairing is an optional security feature. It is currently not supported by the ArduinoBLE library. For most use cases it is also not necessary. You can simply connect/disconnect to the Arduino from within the app. Just connecting is not handled by the OS user interface.
There are many different applications available I like BLE Scanner from bluepixel technologies. Its free on the iPhone but it might be available on Android as well. There are many others on both platforms.
Just start the app. Sometimes you have to start some scan and then you can connect to one of the BLE devices around you and look at the services and characteristics.