Chat freely about anything...

User avatar
By tuanpm
#5722 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
Last edited by tuanpm on Sat Jan 03, 2015 3:15 pm, edited 3 times in total.
User avatar
By bedenko
#5792 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!
User avatar
By zeroday
#5795
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?