The program initializes the Ethernet connection and then asks the pre-configured PubSubClient, as the MQTT library advertises itself as, to connect to the server with a client identity of “arduinoClient”.
You can get all source code from below link.
https://gist.github.com/codepope/8847534
TAG : 201402, W5100, Arduino, IoT, MQTT, Tutorial
This project is very simple and clean project of sending Temperature data to server with MQTT with Arduino Ethernet Board.
The program initializes the Ethernet connection and then asks the pre-configured PubSubClient, as the MQTT library advertises itself as, to connect to the server with a client identity of “arduinoClient”.
COMMENTS