Topic: Two Way Communication
I'm a newbie here, "trying before buying" to see if your software will do what I need. I'd appreciate any advice.
I have a hardware "device" up and running with an ESP32 board at its heart.
It's fairly simple – several touch capacitance buttons controlling a small bank of relays under the hood, to switch external 12vDC circuits on and off. For the next phase of the project I was hoping to introduce the RemoteXY app connecting via Bluetooth to enable remote switching of the device. I'm hoping to have it set up so that the app would also indicate a change in on/off status, if one of the "hardware" buttons is toggled back at the device's control panel.
BUT – if I understand right, button/switch communication is one way only, from the app to the microcontroller ?
So I believe I have sorted out what I will need to do for programming the app – which is to set up a series of buttons or push switches with text labels alongside, and a series of corresponding indicator LEDs.
I'll program the switches to not show any visible on/off state in the app. The code would be written so as to NOT care about what state the app thinks the switches are in – but any switch signal from the app should toggle its corresponding relay's state at the ESP32 and in turn trigger a signal back to the app to toggle its corresponding indicator LED.
Does this all make sense and sound feasible ? Is there an easier way that I'm missing?
Any feedback would be greatly appreciated !
Thanks in advance,
MonkeyWrench.
PS – I have already gotten a test sketch up and running on my ESP32, so app and microcontroller are both happily communicating.