-->
Page 1 of 26

Native MQTT client library for ESP8266

PostPosted: Fri Dec 26, 2014 3:43 am
by tuanpm
UPDATE 31/12/2014:

This is Native MQTT client library for ESP8266, port from: MQTT client library for Contiki

Features:
  • Support subscribing, publishing, authentication, will messages, keep alive pings and all 3 QoS levels (it should be a fully functional client).
  • Support multiple connection (to multiple hosts).
  • Support SSL connection (max 1024 bit key size)
  • Easy to setup and use

Status Under development. ALPHA release.

GITHUB: https://github.com/tuanpmt/esp_mqtt
WIKI: wiki/doku.php?id=eps_mqtt
Best Regards and Happy New Year 2015

Re: Native MQTT client library for ESP8266

PostPosted: Fri Dec 26, 2014 5:45 pm
by ystrem
Great work, it will by super if it would be implemented into nodemcu. The I can use it for control and measure.

Re: Native MQTT client library for ESP8266

PostPosted: Sat Dec 27, 2014 11:15 am
by bedenko
Wow, this is what i was waiting for! :shock:
Excellent code, got to try it out right away.

One suggestion (since you clearly know, what you are doing :geek: ):
If node is used as subsriber only, it would be nice to be able to go in deep sleep, and perhaps wake on delay or external interrupt.

Thanks for this share!

Re: Native MQTT client library for ESP8266

PostPosted: Sat Dec 27, 2014 11:35 am
by zeroday
tuanpm wrote:This is Native MQTT client library for ESP8266, port from: MQTT client library for Contiki

GITHUB: https://github.com/tuanpmt/esp_mqtt

Features: It operates asynchronously, creating a new process to handle communication with the message broker. It supports subscribing, publishing, authentication, will messages, keep alive pings and all 3 QoS levels. In short, it should be a fully functional client, though some areas haven't been well tested yet.
The Makerfile for windows:
Create 2 files user1.bin and user2.bin for OTA (build_ota)
Flash user1.bin and booloader.bin (flash_ota_bootloader)

More information about compiler in Windows please see here: viewtopic.php?f=9&t=820

Status Under development. DO NOT USE in a serious development.

MQTT Broker for test: https://github.com/mcollina/mosca

If anyone has trouble in creating 2 files user1.bin and user2.bin for OTA can see makefile to solve problems. :lol:

Just import to Eclipse

Best Regards


WOW, here it is.
I was always looking for some light-weight MQTT client. you've done a great job.
Could you take a look at my project https://github.com/nodemcu/nodemcu-firmware
I think a mqtt-client is the perfect way for a wifi node connect to Cloud. any thoughts?