https://github.com/bitcodr/esp8266-mqtt
MQTT subscription in ESP8266 board
https://github.com/bitcodr/esp8266-mqtt
c cpp esp8266 esp8266-arduino esp8266mqtt mqtt mqtt-broker
Last synced: 3 months ago
JSON representation
MQTT subscription in ESP8266 board
- Host: GitHub
- URL: https://github.com/bitcodr/esp8266-mqtt
- Owner: bitcodr
- Created: 2020-08-21T15:29:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T16:18:46.000Z (almost 5 years ago)
- Last Synced: 2025-01-30T17:38:54.137Z (5 months ago)
- Topics: c, cpp, esp8266, esp8266-arduino, esp8266mqtt, mqtt, mqtt-broker
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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