-->
Page 26 of 26

Re: Native MQTT client library for ESP8266

PostPosted: Thu May 21, 2015 12:06 pm
by j0hncc
Also, if you are using the Eclipse+UDK, the esp_mqtt example already has LWT:
https://github.com/CHERTS/esp8266-devkit/blob/master/Espressif/examples/esp_mqtt/user/user_main.c

John

Re: Native MQTT client library for ESP8266

PostPosted: Fri May 22, 2015 4:16 am
by ian@eagland.co.uk
Hi John

Thanks for that.
I am back to using the MQTT client library and I am using Eclipse.
The reason for my question is that lwt did not seem to work because I had not realised how long I had to wait until the lwt topic was published. All working now.
The only issue I have now is that sometimes the ESP shows exception in terminal and reboots but it is extremely rare. I am going to change out the ESP module if it continues.

Re: Native MQTT client library for ESP8266

PostPosted: Sat Aug 29, 2015 8:27 pm
by Jorge Salvador Muñoz
Hi. I can't connect to any AP (I have tried several unsuccessful). I'd tried everthing, changing CFG_HOLDER value, user_config.h, etc, then i recompiled but never connects to any AP.
Can you help me?

Re: Native MQTT client library for ESP8266

PostPosted: Sat Aug 20, 2016 7:28 pm
by emzeperx
Hi,

Apologies if I am not posting into the correct topic, I am new here.

I am working on a wifi control for a heater. I have mosquito and openhab running on a rpi2 (jessey). Cabled clients work with it without any issues.

For the wifi enabled controller I use an Arduino nano, an esp8266 and a relay module. esp and the relay module have their own power supply. Esp is connected to the Arduino using software serial (to have usb serial). For the mqtt connection I use mqqt, not pubsubclient. I have tested both and mqtt seems to be more stable, pubsub client tends to miss messages.

The whole thing works fine while I just read mqtt messages with this wifi enabled controller. As soon as I want to publish anything (room temperature and power consumption), the connection to the mosquito server is lost. The wifi connection is ok, ping shows no packet drops. The mosquito log tells: timeout exceeded, disconnecting. What timeout?

Mosquitto is the latest version (1.4.9), just like the mqtt client (0.16.1, according to Arduino IDE). I get the very same result with pubsubclient, too.

What do you recommend to check/test/change?

Thanks in advance,
Zoltan