How can for example a set point be sent to to the client (ex. a set point set at the phone then sent to ESP32 similar to a high temperature set point that could be used to turn on the LED)? Also how could we read the condition of the LED (ON/OFF) on the ESP32 and send it back to the phone? Also, anything on using CSV to read/send data and ON/OFF control?
Thanks! Great course.
You need to create a new field in the BLE App that sends that value to your ESP32.
Basically, you need to create a new field and a unique CHARACTERISTIC_UUID_X that is connected to the app to receive that value when it changes. Then, your ESP32 code receives that value and stores it in a variable.
With some if/else statements, you should be able to use that value to either turn the LED on or off…
About the CSV, unfortunately I’ve never done anything like that… So I don’t have any examples or suggestions…
I’m glad you are enjoying the course. Thanks for your kind words!
So once you create a “Service UUID” you only need one Service but for each value you want to send or receive you need to create a “Characteristic UUID” for each one? Thanks!
Exactly, you only need one “Service UUID” that can have many “Characteristic UUID”.
Here’s an interesting multiple LED control from both the Android device and push buttons on board.