Wykres commitów

37 Commity (15945718fb0c2b95b6cab1b6087be224f8923f7b)

Autor SHA1 Wiadomość Data
Martin Ger f89c74a715 ADC support and shared output buffer 2017-10-12 21:17:41 +02:00
Martin Ger 1fc6ae24c6 added scripting to the master branch 2017-07-21 16:35:45 +02:00
Martin Ger ede97ea37b remote client and MQTT bridging functionality 2017-06-03 15:44:03 +02:00
Martin Ger 7b3905ae16 Initial commit of uMQTT Broker 2017-06-01 23:38:03 +02:00
Jeff H 885bde3af9 Extend init method to allow 0-length client IDs if MQTTv311 is set 2016-11-20 01:12:37 -08:00
Tobias Hoff 0f4113cea4 explicitely set SSL size 2016-10-26 03:33:53 +02:00
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
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
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
Tuan PM d4fd20005c Merge pull request #110 from sreeisalso/master
Corrected mqtt keep alive send
2016-06-30 07:46:51 +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 280b5c3ce8 updated client->keepAliveTick when packet is sent/received 2016-06-07 12:30:35 +05:30
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
Sreekanth 90e316cc1e Corrected secure TCP_DISCONNECTING 2016-03-31 10:19:16 +05:30
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 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 c3d744ae94 Add debug info if platform don't support SSL due to some reason.
Add MQTT_ping.
2015-12-31 14:31:18 +08:00
Tuan PM dbec377d1f NULL to 0 2015-03-02 16:22:56 +07:00
Tuan PM 10851cd97d return when os_event_t == NULL 2015-03-02 16:21:24 +07:00
Tuan PM cacc260e9d change file structure, easy to intergrated with other apps 2015-02-15 19:04:01 +07:00
TuanPM f3cd69d5bb fixes some typo 2015-02-06 08:41:35 +07:00
TuanPM 4c7c1fc642 correct some typo 2015-02-02 22:52:15 +07:00
Tuan PM 466e6dcf4b remove old queue to get more space if the queue is full 2015-02-02 19:46:46 +07:00
Tuan PM 2b7be3cc8e fixes error reconnect when lost wifi signal 2015-02-02 11:27:52 +07:00
Tuan PM 73e9c30f5c add ICACHE_FLASH_ATTR on functions, resolve #31 2015-01-31 13:21:29 +07:00
Tuan PM d810138858 fixes error reconnect, thank @scragill reported 2015-01-29 09:57:15 +07:00
Tuan PM f07f5b5024 Merge branch 'master' of https://github.com/eadf/esp_mqtt into eadf-master 2015-01-19 08:58:20 +07:00
EAD Fritz 9251afebd0 driver/uart.h is *not* needed in mqtt.c 2015-01-18 14:06:35 +01:00
EAD Fritz 793a98b147 Moved all of the mqtt specific files to a separate build directory. The intention is to be able to use it as a git subtree module in other projects 2015-01-18 10:43:10 +01:00