Make your Arduino accessible from anywhere via the Yaler relay.
Setting up your device requires a relay domain. Please sign up to get one.
This tutorial works with any Arduino setup supporting the Ethernet library, e.g. the EthernetShield.
Using another setup? See how to access your Arduino WiFi, the Arduino WiFi101, the Arduino CC3000 or the Arduino Yún.
Follow these steps to add the YalerEthernetServer library to your Arduino IDE.
YalerEthernetServer.zip
C:\Users\USER_NAME\Documents\Arduino\Libraries\YalerEthernetServerOn Mac OS X extract the ZIP to
~/Documents/Arduino/libraries/YalerEthernetServer
File > Examples > YalerEthernetServer > YalerWebService
YalerEthernetServer server("try.yaler.io", 80, "gsiot-ffmq-ttd5");How to adapt an existing Arduino Web service to make it accessible from the Web.
#include <YalerEthernetServer.h>
EthernetServer server(80);with the line
YalerEthernetServer server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domainEthernet.begin(mac, ip, gateway, subnet);replace it with the short version to enable DHCP
Ethernet.begin(mac);
#include <Ethernet.h> #include <YalerEthernetServer.h> ... //EthernetServer server(80); YalerEthernetServer server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domain void setup() { //Ethernet.begin(mac, ip, gateway, subnet); Ethernet.begin(mac); ... } void loop() { ... }
This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.