Re: Native MQTT client library for ESP8266
Posted: Tue Jan 06, 2015 1:59 pm
Hi! Great work! I'm trying your code, but somehow I'm not able to get it to work. I have compiled you code and flashed it to my ESP8266 after it is finished I connect to it with Coolterm and I see this:
I use Really Small Broker as broker and I see the following:
Can you please help me out? what am I missing?
Do I need to do anything with this:
Thanks!
Code: Select all
scandone
STATION_IDLE
add 0
aid 2
pm open phy_2,type:2 0 0
cnt
STATION_IDLE
connected with [i][MY-SSID][/i], channel 2
dhcp client start...
STATION_IDLE
STATION_IDLE
STATION_IDLE
ip:192.168.1.121,mask:255.255.255.0,gw:192.168.1.1
TCP: Connect to ip 192.168.1.101:1883
client handshake start.
TCP: Reconnect to 192.168.1.101:1883
TCP: Connect to ip 192.168.1.101:1883
TCP:Reconect to: 192.168.1.101:1883
client handshake start.
TCP: Reconnect to 192.168.1.101:1883
I use Really Small Broker as broker and I see the following:
Can you please help me out? what am I missing?
Do I need to do anything with this:
Code: Select all
#define MQTT_CLIENT_ID "DVES_%08X"
#define MQTT_USER "DVES_USER"
#define MQTT_PASS "DVES_PASS"
Thanks!