-->
Page 1 of 3

[Library] MQTTDUINO - Arduino/esp8266 mixed MQTT client

PostPosted: Tue Feb 24, 2015 4:54 pm
by Suxsem
Hi all!

I want to share with you the client that I made (for personal purpose) for using MQTT with Arduino.
It's not a real library, it's a lua script to put on the esp8266 (with nodemcu firmware) that do most of the work + an Arduino sketch that communicates with the esp8266 with a simple ASCII protocol.

Then you can subscribe with something like
Code: Select all   mqttSubscribe("hello");   //subscribe to "hello" topic

publish messages with
Code: Select all   mqttPublish("sensor", String(analogRead(A0)), 0);   //publish new message to "sensor" topic, with retain

and receive message with
Code: Select allvoid onMessage(String topic, String message) {   //new message callback
}


You can find it on GITHUB: https://github.com/Suxsem/Mqttduino

Re: [Library] Arduino/esp8266 mixed MQTT client

PostPosted: Wed Feb 25, 2015 9:47 am
by quantalume
Nice, thanks for posting. This will come in handy for me soon.

Re: [Library] Arduino/esp8266 mixed MQTT client

PostPosted: Wed Feb 25, 2015 11:36 am
by Suxsem
quantalume wrote:Nice, thanks for posting. This will come in handy for me soon.

Great! Please let me know if you have any problems :)

Re: [Library] MQTTDUINO - Arduino/esp8266 mixed MQTT client

PostPosted: Sun Mar 01, 2015 3:11 pm
by scratchrobot
Hi i tested your Arduino/esp8266 mixed MQTT client and it works very well, thanks for sharing.

Regards