Thanks Juan, this was very helpful. I am attaching my version of a the project that is bi-directional controlling 2 LEDs and receiving data from the ESP32. Also the Arduino sketch(change the txt to .ino) ESP32_BLE_LEDs_V3.aia (211.1 KB)
ESP32-BLE_Appinventor2_relay_v7.txt (4.4 KB)