Hello,
I need help with a project. I have googled myself a Web Server. I have extended it with two additional channels of type: ON/OFF.
Additionally, I connected an IR receiver to the circuit in order to be able to control the same ON/OFF channels with an IR remote control.
For example: if I have the remote control handy at the moment, I press button "1" and switch the first channel on or off. And if necessary, using a smartphone or a computer via a browser, I do the same analogously.
Circuit diagram:
.
Porgram code:
.
I don't know how to make use of the two IF conditions.
I would like the ON/OFF status to refresh automatically on the web page if I use the RC remote instead of the browser.
I need help with a project. I have googled myself a Web Server. I have extended it with two additional channels of type: ON/OFF.
Additionally, I connected an IR receiver to the circuit in order to be able to control the same ON/OFF channels with an IR remote control.
For example: if I have the remote control handy at the moment, I press button "1" and switch the first channel on or off. And if necessary, using a smartphone or a computer via a browser, I do the same analogously.
Circuit diagram:

Porgram code:
Code: C / C++
I don't know how to make use of the two IF conditions.
I would like the ON/OFF status to refresh automatically on the web page if I use the RC remote instead of the browser.