July 2016
Intermediate to advanced
226 pages
4h 6m
English
It's now time to configure the ESP8266 Wi-Fi chip so it can accept commands coming from the cloud. This is something we already saw earlier, but it's always good to remember the basics, as we'll make a more complicated sketch later in this chapter:
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <aREST.h>
WiFiClient espClient; PubSubClient client(espClient);
aREST library:aREST rest = aREST(client);
const char* ssid = "wifi-ssid"; const char* password = "wifi-pass";