Project: I have this Chinese 12V dual relay widget with an ESP-01 module strapped onto it. As it arrived, it had some pre-loaded code that only worked with Android (which I don’t have) so I’d like to use it with Blynk.
Now, I’ve got Blynk installed on the ESP-01, along with the virtual terminal and I can do the Marco-Polo thing. What I want to do now and just can’t find anything here in the forums is basically have a button for Open which sends two hex commands down the TX pin to the microcontroller on the relay board and another button that says Close that does the same but with the other hex commands. I want this to close the switch on my garage door controller that triggers the open cycle and the same for the circuit that closes it.
So I guess the first question is if this is possible with the ESP-01? Second is how do I code Blynk to send the relay control commands?
Relay control command（must be hex format）：
Open the first relay： A0 01 01 A2
Close the first Relay： A0 01 00 A1
Open the second relay： A0 02 01 A3
Close the second Relay：A0 02 00 A2
Thanks in advance