Lesson1_LED_http_simpliest_noLib by hubacekp

This sketch is missing a short description

A first examle to communicate between RobotMonitor Interfaces and a Device over HTTP.


This code is the simplest way to switch ON/OFF a LED or a Relay on the Arduino.

View more description:
here:http://www.robotmonitor.com/example/single-led/

Use this URL when outside home network:
(use RobotMonitor's Proxy)
http://yourWAN:51840/a to turn the LED ON
http://yourWAN:51840/s to turn the LED OFF

Use this URL in the home network.
(don't use RobotMonitor's Proxy)
http://192.168.1.184:51840/a to turn the LED ON
http://192.168.1.184:51840/s to turn the LED OFF

You MUST setup Port forwarding on your router according to the Arduino's port and the IP 192.168.1.184.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:61508" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>