Use ESP-IDF Classic BT SPP(Serial Port Profile)API to make a piconet with 5 Bluetooth devices. one ESP32-WROOM-32 as Master, two ESP32S (ESP32-S, ESP32-CAM) as Slave, and one Android phone as Slave The Bluetooth Serial Terminal is used as a console to instantly accept the connection status of the devices in the piconet, and another laptop executes the Bluetooth Serial Terminal for the Slave. The Slave can send control commands to the Master, or send control commands or text messages to other Slaves through the Master.
There are 5 instruction types in this project:
1.AT+ST[device_name]: Register your own name [device_name] with the Master, for example: AT+STP0.
2.AT+LS: List connected slaves, eg: AT+LS.
3.AT+CMD[target_device_name:command]: Send commands to other devices, for example: AT+CMDC0:ON.
4.AT+TXT[target_device_name:TEXT]: Send Text to other devices, for example: AT+TXTT0:TEST.
5.AT+DIS: Send offline message to Master, for example: AT+DIS.
For details and code, please refer to the following URL:
https://mcuapplab.blogspot.com/2022/0...