New to this, need help with error 503

I am in need of help, i’m triying to connect to my ESP-32 board but i always get “Error 503: The specified adress is not a valid Bluetooth MAC adress” and i don’t know how to solve it. Thanks in advance to everyone who answers

some additional info:

  • The MAC adress of the board is C0:CD:D6:CF:C0:7A
  • I have it paired with my phone
  • bluetooth is enabled on the arduiono ide code

Each element of the list AdressesAndNames contains the mac address and name.

You have to extract only the first part, the address ( split the string at a space “ “ )… or simply use the mac address you already know

The ESP32 is capable of both Classic BT and BLE: which are you using on it ?

Please be aware that if BLE, then you need to load the dedicated extension.

Moreover, as @davidefa has aleady suggested, since you already know the MAC address of your ESP32, you don’t need to pick it up from a list, just connect it directly.

i’m using bluetooth as far as i know. The thing with using a already known adress is that the app needs to be able to function with more than one board so the MAC adress would change

For classic Bluetooth this would be the correct blocks assuming you have scan and connect permission

If connect ...
Then connected
Else not connected

Taifun

1 Like

thanks a lot, the problem has been solved with this

NIce to read that @Taifun has helped you to solve !

Best wishes for your project.