This is an example sketch for the esp8266 that sends an MQTT message with the IP address of the esp8266 to the configured MQTT broker
ESP8266 Boards
Review of ESP8266 boards
MQTT Libraries
- PubSubClient.h, Arduino Client for MQTT
- Adafruit_MQTT.h, Arduino MQTT Library
- MQTTClient.h, 256dpi Library Paho based (limited ESP8266 boards)