Wykres commitów

61 Commity (dd4cf9c2da1c9e2fd2b6c26a3192005be40ebaee)

Autor SHA1 Wiadomość Data
Martin Ger 671a543ce3 demo scripts and publish command 2017-08-22 21:46:45 +02:00
Martin Ger 34b225620f faster delete of re-established connections 2017-08-21 22:03:44 +02:00
Martin Ger 3ab2cad6e6 broker access mode added 2017-08-21 14:27:07 +02:00
Martin Ger 171b75c65c user/password auth added 2017-08-16 11:04:31 +02:00
Martin Ger 8205b1cf04 added gpio_pinmode, gpio_in, and brackets 2017-07-26 11:59:11 +02:00
Martin Ger 1fc6ae24c6 added scripting to the master branch 2017-07-21 16:35:45 +02:00
Martin Ger 7c15a93399 Bug in event queues 2017-07-16 20:27:29 +02:00
Martin Ger ede97ea37b remote client and MQTT bridging functionality 2017-06-03 15:44:03 +02:00
Martin Ger 0d735c8024 Mem error in retained topics 2017-06-02 14:45:01 +02:00
Martin Ger 779c7cf26c fix when sending retained topics 2017-06-02 12:03:18 +02:00
Martin Ger ebfb3e897a added user sample program 2017-06-02 01:04:48 +02:00
Martin Ger 7b3905ae16 Initial commit of uMQTT Broker 2017-06-01 23:38:03 +02:00
Tuan PM cf87bc521e Merge pull request #126 from st0ff3r/master
PROTO_AddRb(): rollback inserts into ringbuffer done by RINGBUF_Put()…
2017-05-25 10:14:47 +07: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
st0ff3r 80abcbf3a9 PROTO_AddRb(): rollback inserts into ringbuffer done by RINGBUF_Put() when there was not eneough space free 2016-11-18 05:32:06 +01:00
Tobias Hoff 0f4113cea4 explicitely set SSL size 2016-10-26 03:33:53 +02:00
Jeff Hufford 149091e167 Use proper type for keepalive
Minor, but keepalive member in struct mqtt_connect_info is signed and gets compared with unsigned.
2016-09-17 10:22:57 -07: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
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
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 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
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 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
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
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
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
Fredrik Olofsson 246e051ed0 Clear whole mqtt_connection_t. 2015-07-23 14:43:55 +02:00
Axel Lin 6556476624 Fix unsubscribe message type
Use MQTT_MSG_TYPE_UNSUBSCRIBE for unsubscribe.
2015-05-07 09:27:25 +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 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
Tuan PM 774f5a99d4 add protocol name selection(3.11 or 3.1), defaut is v3.1, resolve #36 2015-02-06 09:41:37 +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