Wykres commitów

110 Commity (b458ea49c1a853e8b15cdf7732727f03ae93ef6c)

Autor SHA1 Wiadomość Data
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
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
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
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
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
Huang Rui 83daf971d6 Rename user_config.h to mqtt_config.h 2015-12-31 14:21:59 +08:00
Huang Rui 39277ca0f5 Update MQTT config file 2015-12-31 14:21:22 +08:00
Rui Huang 29a1bd9cbd Merge pull request #1 from frolswe/master
Clear whole mqtt_connection_t.
2015-12-31 14:05:00 +08:00
TuanPM 70d19cbb4d update README for clone --recursive 2015-09-03 13:19:15 +07:00
TuanPM 2786b6f68b change method save wifi infomation to flash 2015-09-03 13:15:02 +07:00
Tuan PM 55937fb701 update support sdk 1.3, not fully tested 2015-08-31 12:10:45 +07:00
Fredrik Olofsson 246e051ed0 Clear whole mqtt_connection_t. 2015-07-23 14:43:55 +02:00
Tuan PM 28c63ffa13 Merge pull request #61 from AxelLin/master
Revert "Add user_rf_pre_init() function to fix build error with SDK-1…
2015-05-30 10:47:10 +07:00
Axel Lin 9f8b8ee117 Revert "Add user_rf_pre_init() function to fix build error with SDK-1.1.0"
This reverts commit 5ff9766908.

The esp-onen-sdk adds the fix for force-requiring user_rf_pre_init() [1].
So we need to drop the user_rf_pre_init function in user_main.c to prevent
multiple definition of `user_rf_pre_init' error.

[1] 4e4590de89
2015-05-29 10:55:25 +08:00
Tuan PM 42798bcba5 Merge pull request #59 from AxelLin/master
Add user_rf_pre_init() function to fix build error with SDK-1.1.0
2015-05-26 15:52:14 +07:00
Axel Lin 5ff9766908 Add user_rf_pre_init() function to fix build error with SDK-1.1.0
This patch fixes below build error with SDK-1.1.0:
esp-open-sdk/sdk/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x34c): undefined reference to `user_rf_pre_init'

According to esp_iot_sdk_v1.1.0_15_05_26 Release Note:
user_rf_pre_init has to be added in user_main.c, user can call
system_phy_set_rfoption to set configuration of RF in it.
2015-05-26 14:55:52 +08:00
Tuan PM 9f4d1508a8 Merge pull request #56 from AxelLin/master
Fix unsubscribe message type
2015-05-07 09:43:22 +07: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 7247e3f9ff update readme 2015-03-05 17:43:13 +07:00
Tuan PM 24a6caeb22 add travis build 2015-03-05 17:39:27 +07:00
Tuan PM e03d539fa5 add travis build 2015-03-05 17:27:44 +07: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 261a21db71 move config.* and wifi.* to modules folder 2015-02-16 17:22:10 +07:00
Tuan PM 10d13ed5dc Update README.md, resolve #43 2015-02-16 11:53:12 +07:00
Tuan PM d579c08765 cleanup makefile 2015-02-15 21:44:39 +07:00
Tuan PM da4e128ddc Add compilation instructions 2015-02-15 21:19:21 +07:00
TuanPM 597e078a64 change executeable attr for tools/esptool.py 2015-02-15 19:37: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 454f2d8bd5 Merge pull request #38 from eliabieri/master
Added note
2015-02-06 21:14:42 +07:00
Elia Bieri 10026b16ff Added note
I added a note where you can find the BLANKER (blank.bin) file.
Maybe this helps someone!
2015-02-06 11:54:08 +01:00