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 WiFi101 library, e.g. the Arduino Zero with the WiFi Shield 101.
Using another setup? See how to access your Arduino WiFi, the Arduino CC3000, the Arduino Ethernet or the Arduino Yún.
Follow these steps to add the YalerWiFi101Server library to your Arduino IDE.
YalerWiFi101Server.zip
C:\Users\USER_NAME\Documents\Arduino\Libraries\YalerWiFi101ServerOn Mac OS X extract the ZIP to
~/Documents/Arduino/libraries/YalerWiFi101Server
File > Examples > YalerWiFi101Server > YalerWebService (or YalerSSLWebService)YalerWiFi101Server server("try.yaler.io", 80, "gsiot-ffmq-ttd5"); // Use port 443 for TLSHow to adapt an existing Arduino Web service to make it accessible from the Web.
#include <YalerWiFi101Server.h>
WiFiServer server(80);with the line
YalerWiFi101Server server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domain, port 443 for TLS#include <WiFi101.h> #include <YalerWiFi101Server.h> ... //WiFiServer server(80); YalerWiFi101Server server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domain, port 443 for TLS void setup() { ... } void loop() { ... }
This tutorial is still in beta. Found a bug? Let us know.
This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.