Arduino nano pairing problem

Good morning! I wrote a program to measure the rssi between my phone and my Arduino nano 33 BLE.
The program works while my phone shows "Pairing..." with arduino.
But the pairing still fails, so the program stops.

How to pair my phone and my arduino?

Here my program:

#include <ArduinoBLE.h>
void setup() {
 
  Serial.begin(9600);

  if (!BLE.begin()) {
    Serial.println("starting Bluetooth Low Energy module failed!");

    while (1);
  }
  BLE.setLocalName("TEST");
  BLE.advertise();
}

void loop() {
  
if (BLE.connected()) {
   
    Serial.println(BLE.rssi());
    delay(600);
  }
  else{
    Serial.println("Disconnected");
  }

}

What app are you using on your phone. With an Android phone, both nrfConnect and LightBlue see the advertising device established by your code, and are able to connect to it.

Thank you, I solve my problem.

It was because the Arduino Nano BLE don't support pairing. I haven't problems if I use Nordic Connect.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.