Push button remote control
Posted: Mon Jan 02, 2017 6:55 pm
Hi all,
I wish to use a couple of Wemos D1 Minis to create a push button remote control, one as sender the other as receiver.
I am familiar with Arduino and am using Arduino IDE. I am being let down by my lack of knowledge of HTML.
I have both units connected as access point and client and have server setup on "receiver" with server.on triggers set for url/ledon and url/ledoff.
I can use a browser on phone to connect to receiver AP and go to URL/ledon /URL/ledoff and it works fine.
I need some help with the HTML call needed in the remote to "open" the page on the receiver to cause page to open and server.on to trigger.
I am sure it is a simple command I need but cannot find reference anywhere.
I have tried html.begin("URL"); but that does not have any effect, I assume I need more.
any sample code you can post would be useful.
I wish to use a couple of Wemos D1 Minis to create a push button remote control, one as sender the other as receiver.
I am familiar with Arduino and am using Arduino IDE. I am being let down by my lack of knowledge of HTML.
I have both units connected as access point and client and have server setup on "receiver" with server.on triggers set for url/ledon and url/ledoff.
I can use a browser on phone to connect to receiver AP and go to URL/ledon /URL/ledoff and it works fine.
I need some help with the HTML call needed in the remote to "open" the page on the receiver to cause page to open and server.on to trigger.
I am sure it is a simple command I need but cannot find reference anywhere.
I have tried html.begin("URL"); but that does not have any effect, I assume I need more.
any sample code you can post would be useful.