Page 1 of 1

Bluetooth Serial Port Protocol help required ESP-IDF

Posted: Thu Mar 04, 2021 10:11 pm
by orbitcoms
Hi
I had a project that had 2 processors. One was an ESP32 that was acting as a simple serial bridge for serial data from Android device app using SPP. The code I used was a simple serial bridge example online that runs on Arduino.

Now I have removed the second processor and want to do everything in the ESP32 but I am having trouble replicating the Bluetooth SSP that the arduino library provided. I don't need to send the data physically out a serial port but just receive the data internally and send back data as required.

ie.
ESP32 BT is discoverable
Connecting to device from mobile phone provides a "Connected" status or similar in ESP32
Data can be sent back and forth as required once connected.

I did look at the Bluetooth examples in the esp-idf folder but they have added functions I do not understand, making it difficult to determine which code snippets I can use to implement simple SSP