#include #include "TinyMqtt.h" // https://github.com/hsaturn/TinyMqtt #include // https://github.com/janelia-arduino/Streaming /** Simple Client * * This is the simplest Mqtt client configuration * * pro - small memory footprint (both ram and flash) * - very simple to setup and use * * cons - cannot work without wifi connection * - stop working if broker is down * - local publishes takes more time (because they go outside) */ #include void setup() { Serial.begin(115200); delay(500); Serial << "Simple clients with wifi " << endl; WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial << '.'; } Serial << "Connected to " << ssid << "IP address: " << WiFi.localIP() << endl; } void loop() { }