Wykres commitów

139 Commity (30523fbe906c1319eb124483f90c9c68ef4981dd)

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 4acdfe0a5d update link travis to README and fixed opensdk link 2016-09-09 21:18:31 +07:00
Tuan PM bcf0ce4c59 update link travis to README and fixed opensdk link 2016-09-09 21:04:19 +07:00
Tuan PM dbd3324a0a update link travis to README and fixed opensdk link 2016-09-09 21:02:00 +07:00
Tuan PM f5a4f0a7ed update open sdk link for travis 2016-09-09 20:57:29 +07:00
Tuan PM cc989eaa95 update travis to build with sdk 2.0 2016-09-09 20:53:30 +07:00
Tuan PM 91b7ef9b81 Update readme 2016-09-09 20:49:00 +07:00
Tuan PM 7fde706b8e remove all submodule 2016-09-09 20:37:37 +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
Tuan PM a5e5f97cca Merge pull request #118 from vowstar/master
Some fix about stability of mqtt connection about keepalive
2016-09-06 19:35:03 +07:00
Huang Rui 65bf3adc2a Fix keepalive time error.Made keepalive interval half of keepalive time.
This can prevent abnormal disconnect.
2016-09-06 18:32:34 +08:00
Huang Rui c1ac44a083 Clear callback functions to avoid abnormal callback 2016-08-23 17:35:31 +08:00
Tuan PM 8ceb84eb5b Merge pull request #116 from vowstar/master
Fix memory leak when call mqtt_client_delete, and add rfinit.c
2016-08-18 08:13:44 +07:00
Huang Rui e93ccc8f28 Fix memory leak when delete mqtt clientadd modules/rfinit.c, add __attribute__((weak)) to make it works on both sdk 2.0.0 and esp_open_sdk 2016-08-18 02:57:36 +08:00
Huang Rui 1e1d336414 Merge https://github.com/vowstar/esp_mqtt 2016-08-17 21:41:53 +08:00
Tuan PM c082fcbd7c Merge pull request #100 from jensh/mqtt_get_publish_data
mqtt_get_publish_data() should always return len=0 if data=NULL.
2016-06-30 07:49:00 +07:00
Tuan PM d4fd20005c Merge pull request #110 from sreeisalso/master
Corrected mqtt keep alive send
2016-06-30 07:46:51 +07:00
Tuan PM 8933adb4d6 Merge pull request #112 from someburner/master
add wrapper for un-subscribe, check user/pass for NULL
2016-06-30 07:44:44 +07:00
Jeff Hufford 6044edb078 Forgot ICACHE_FLASH_ATTR in header 2016-06-29 07:06:27 -07:00
Jeff H 88bb406fb4 add null checks for client user/pass 2016-06-13 01:09:48 -07:00
Jeff H 53c913256d add wrapper for un-subscribe 2016-06-13 01:05:36 -07:00
Sreekanth 0c806ec0f1 Merge pull request #2 from tuanpmt/master
latest
2016-06-07 14:13:20 +05:30
Sreekanth 280b5c3ce8 updated client->keepAliveTick when packet is sent/received 2016-06-07 12:30:35 +05:30
Tuan PM 368c1aad63 Merge pull request #109 from StefanBruens/sanitize_config_strings
Sanitize config strings
2016-06-01 16:32:23 +07:00
Stefan Brüns 764cc125c1 Extend device_id config field to 32 characters, including trailing null 2016-05-31 19:06:51 +02:00
Stefan Brüns b458ea49c1 make sure SSID is not overwritten by mqtt client id, always null-terminate
Each os_sprintf potentially overwrites any later field if the configured
value is to long.
2016-05-31 19:06:45 +02:00
Rui Huang 679c42a062 Merge pull request #5 from tuanpmt/master
Update code from upstream
2016-04-20 16:54:01 +08:00
Sreekanth c91dcf89df Merge pull request #1 from tuanpmt/master
updating latest
2016-04-06 11:03:28 +05:30
Tuan PM c431787276 Merge pull request #101 from lorenzph/fix-reconnection
Delete existing connection before connecting
2016-04-04 08:20:01 +07:00
Philip Lorenz 0f980bf7eb Delete existing connection before connecting
If the current connection is terminated unexpectedly (e.g. because the
WiFi connection is dropped) the disconnect callback is not called. This
means that reestablishing the existing connection is not possible any
more.

Avoid this issue by forcefully removing the existing connection before
initiating the reconnection. Calling MQTT_Disconnect and waiting for
the disconnection callback should still be performed for intentional
disconnections.

Fixes #96
2016-04-03 19:38:50 +02:00
Jens Hauke 24cda90286 mqtt_get_publish_data() should always return len=0 if data=NULL.
In case of qos>0 mqtt_get_publish_data might return data=NULL but
leave len=buffer_len (!= 0). Doing a memcpy(user_buffer, data, len)
with such a len cause a segfault. This patch always set len=0 when
data=NULL.
2016-04-01 16:53:59 +02:00
Tuan PM 670cfd7171 Merge pull request #99 from sreeisalso/master
Corrected secure TCP_DISCONNECTING
2016-03-31 18:07:08 +07:00
Sreekanth 90e316cc1e Corrected secure TCP_DISCONNECTING 2016-03-31 10:19:16 +05:30
Rui Huang fb0a26b3ba Merge pull request #4 from tuanpmt/master
Merge lorenzph‘s fix
2016-03-05 22:26:17 +08:00
Tuan PM 1843a1efb4 Merge pull request #94 from lorenzph/improve-reliability
Improve reliability
2016-02-17 10:54:01 +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
Tuan PM a5f072bcb1 Merge pull request #92 from vowstar/master
Adjust disconnect add timeout callback in MQTT module.
2016-02-02 13:09:12 +07:00
Rui Huang b71b014b25 Merge pull request #3 from Deadolus/sdk_1.5.0
Merge Sdk 1.5.0 travis file
2016-01-25 02:12:38 +08:00
Rui Huang 1d88deab09 Merge pull request #2 from Deadolus/master
Adding crypto modul for esp_mqtt to work with SDK 1.5.0
2016-01-25 02:07:56 +08:00
Simon Egli 011022510b Adding apt-get update as suggested by manual
Manual at: https://docs.travis-ci.com/user/installing-dependencies/

Signed-off-by: Simon Egli <simon.egli@bbv.ch>
2016-01-21 10:04:57 +01:00
Simon Egli 7bfeb6db16 Downloading newest version of SDK
Signed-off-by: Simon Egli <simon.egli@bbv.ch>
2016-01-21 10:00:34 +01:00
Simon Egli 249c425bac Adding crypto modul for esp_mqtt to work with SDK 1.5.0
Signed-off-by: Simon Egli <simon.egli@bbv.ch>
2016-01-15 15:21:28 +01:00
Huang Rui d2ee709744 Handle keep-alive and add make timeout working. 2016-01-01 02:30:12 +08:00
Huang Rui ee50b6232c Add timeout callback in MQTT module. 2016-01-01 01:25:33 +08:00
Huang Rui 1d07213b4d Rename MQTT_ping to MQTT_Ping 2015-12-31 21:48:20 +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 a08749fdf7 qos is not used in MQTT_Subscribe(MQTT_Client client, char topic, uint8_t qos)
Fix https://github.com/tuanpmt/esp_mqtt/issues/82
2015-12-31 14:47:08 +08:00
Huang Rui 3a6a6ac77a Enable SSL 2015-12-31 14:31:33 +08:00