Bluetooth Serial Port Protocol help required ESP-IDF

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Bluetooth Serial Port Protocol help required ESP-IDF

Postby orbitcoms » Thu Mar 04, 2021 10:11 pm

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

Who is online

Users browsing this forum: No registered users and 184 guests