Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 480 Bytes

Readme.md

File metadata and controls

13 lines (7 loc) · 480 Bytes

MQTT subscription in ESP8266 board

Configuration

const char *ssid = "your wifi name";

const char *password = "your wifi password";

const char *serverHostname = "mqtt host name or use broker.hivemq.com for development";

const char *topic = "mqtt topic name";

Compile the code to the board with VSCode PlatformIO or Arduino IDE, Publish a message like on to the MQTT broker you'll see the board built-in LED turns on and send off for turning off built-in LED