Make your ESP32 accessible from anywhere via the Yaler relay.
Setting up your device requires a relay domain. Please sign up to get one.
This tutorial assumes you are using the Arduino IDE, e.g. with the Espressif ESP32 Development Board.
This tutorial is still in beta. Found a bug? Let us know.
Follow these steps, or see Arduino core for ESP32 to add the ESP32 to your Arduino IDE.
arduino-esp32-master.zip
C:\Users\USER_NAME\Documents\Arduino\Hardware\espressifOn Mac OS X extract the ZIP to
~/Documents/Arduino/hardware/espressif
$ python get.pyThis step requires Python 2.7 and pySerial.
Tools > Board > ESP32 Dev Module
Follow these steps to add the YalerWiFiServer library to your Arduino IDE.
YalerWiFiServer.zip
C:\Users\USER_NAME\Documents\Arduino\Libraries\YalerWiFiServerOn Mac OS X extract the ZIP to
~/Documents/Arduino/libraries/YalerWiFiServer
File > Examples > YalerWiFiServer > YalerWebService
YalerWiFiServer server("try.yaler.io", 80, "gsiot-ffmq-ttd5");How to adapt an existing Arduino Web service to make it accessible from the Web.
#include <YalerWiFiServer.h>
WiFiServer server(80);with the line
YalerWiFiServer server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domain#include <WiFi.h> #include <YalerWiFiServer.h> ... //WiFiServer server(80); YalerWiFiServer server("try.yaler.io", 80, "RELAY_DOMAIN"); // Use YOUR relay domain void setup() { ... } void loop() { ... }
This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.