Wykres commitów

12 Commity (develop)

Autor SHA1 Wiadomość Data
Tuan PM 30523fbe90 -reformat code using space 2
- fix bug connect callback when connection refuse
- change INFO to MQTT_INFO to resolve conflic with global INFO define
2016-09-09 22:37:03 +07:00
Tuan PM f7ccc86709 -update to sdk 2.0
- cleanup and make Makefile simple
- add define to get local_config
- remove esptool
2016-09-09 20:36:52 +07:00
Jeff Hufford 6044edb078 Forgot ICACHE_FLASH_ATTR in header 2016-06-29 07:06:27 -07:00
Jeff H 53c913256d add wrapper for un-subscribe 2016-06-13 01:05:36 -07:00
Philip Lorenz ecffa17bac Disconnect before reconnecting
If a reconnect is triggered on a built-up connection the current
espconn instance is replaced without waiting for the invocation of
its disconnection callback.
As a result the disconnection callback gets invoked when the new
espconn instance has already been set, falsely terminating the newly
created connection.

Fix this by disconnecting the current connection cleanly before trying
to reestablish the connection. This change also prevents reconnections
via MQTT_Connect. Instead users should disconnect the current
connection via MQTT_Disconnect before invoking MQTT_Connect for an
existing client.
2016-02-14 22:29:57 +01:00
Philip Lorenz 3e2c77deb5 Do not send keep-alive before pending send has finished
According to the SDK documentation espconn_send should not be called
before espconn_sent_callback has been invoked for the previous
call.

Fixes #67
2016-02-14 22:29:57 +01:00
Huang Rui ee50b6232c Add timeout callback in MQTT module. 2016-01-01 01:25:33 +08:00
Huang Rui 2be4be43e5 Add MQTT_DeleteClient method.
You can use it to safe delete MQTT connection, and free all memory.
2015-12-31 21:43:37 +08:00
Huang Rui 23635a710f Disconnect in a more safe way.
Using os_post to trig the task to safe call disconnect.
Disconnect the TCP connection when execute MQTT disconnect.
2015-12-31 20:55:37 +08:00
Huang Rui d9e6e715d5 Add mqtt_config.h to some headers need use.
Add default user_config.h
2015-12-31 14:25:07 +08:00
Tuan PM e6e4e3d914 add user_data to mqtt structure 2015-02-28 19:32:51 +07:00
Tuan PM cacc260e9d change file structure, easy to intergrated with other apps 2015-02-15 19:04:01 +07:00