Hello everyone, I just signed up to the community and have been trying to get my app going as much as I could before looking for help here. As I have arrived at a very complex moment for me, I am looking for help, please.
My intention is an app that is similar to this one:
https://play.google.com/store/apps/details?id=com.the
hlab.pc.rccar&hl=en_US
Which should control two or more ESP32-C3 (zero) or (SuperMini) Development Board.
When I write an .ino code on the ESP32-C3 I must already inform the service and characteristic UUIDs. Considering that the app must control any ESP32-C3 with its previously defined UUIDs, it is necessary for the app to be able to discover and connect to each ESP32-C3 by selecting the discoveries in a list. Function that the app listed above is capable of doing.
See the moment the app discovers the service and characteristic UUIDs (reading and writing) to connect. (attached image).
My intention is that, for example, on the main screen of the app where I will have the steering wheel, the accelerator, and some LEDs, I also want to have some buttons whose functionality is to control more than one ESP32-C3 on the same screen.
RC_BLE_3.aia (5.2 MB)
Suppose that to turn the steering wheel, accelerate and light up some LEDs I have control over ESP32-C3 number 1 inside the toy, and to activate two servo motors that, for example on a track where my RC car is running, I can control the opening of two gates that will be controlled through ESP32-C3 number 2 (example, Buttons image with number 1 and 2).
I'm going to share here my .aia project which so far is incomplete and messy, it has more than one screen, where in the secondary screens and in the configuration button is where I try to adjust the discovery and connection with more than one ESP32-C3 by discovering the UUIDs .
I have other configurations to do in the app, but I came to the conclusion that before continuing to implement features I need to ensure that it is possible to make multiple BLE connections on the same main screen of the app, or even to successfully connect with the ESP32-C3 Super Mini or Zero with any UUIDs written, this being the immediate need for me to continue with this project.
I've read all the posts here in the community that refer to BLE, UUIDs and multiple connections, unfortunately none of them fit this specific functionality that I need.
Thank you for your help with this project, as this functionality will not be restricted to this project. The ESP32-C3 modules (Zero or SuperMini) can be used in various projects, even for home automation. Its limited number of pins can be overcome by implementing multiple ESP32-C3s and being logically controlled by a single application capable of discovering, connecting and managing data sending.