XuanZe
c837f9cc5f
fix: add header "esp_err.h" ( #31 )
...
use type esp_err_t but you not include it's header
2018-03-26 16:07:20 +08:00
oldgreen
55f04a8e61
Abort MQTT connection if sending of ping fails ( #30 )
...
* Remove unused code: the state here is always MQTT_STATE_CONNECTED.
Under the assumption that only the esp_mqtt_task can change the client state
(otherwise we are missing a lock around the state usage everywhere).
* Change the return type of esp_mqtt_client_ping from int to esp_err_t.
* Abort the MQTT connection if we can't send ping.
Try to handle the situation when the underlying connection changes and the
sockets have wrong status (see esp-idf/docs/api-guides/wifi.rst).
2018-03-16 19:25:34 +08:00
agmuntianu
5c46be5ada
Crash fixes and ssl connection ( #29 )
...
* add missing config for setting default port for SSL in Kconfig
* free the TCP only after closing the connection , not before
* set the config in the client before we access the schema in the client
* fix typo
* dispatch also Publish event
2018-03-09 22:04:33 +07:00
Tijn Kooijmans
6d8a6c79bd
Fixed length of binary lwt message ( #28 )
...
* changed reconnect timeout to 5 seconds
* changed reconnect timeout to 5 sec
* fixed binary lwt message
* stop reconnect timer to block CPU
* reduced task stack and network timeout
* fixed length of non-string lwt message
2018-03-06 18:12:51 +07:00
Tuan PM
60567cb238
Add vTaskDelay in STATE_WAIT_TIMEOUT, resolve #27
2018-03-02 11:24:27 +07:00
Tuan PM
12c6c293bb
Update document
2018-03-01 23:32:36 +07:00
Tuan PM
54e76011bc
Update README with svg build icon, mention about kconfig
2018-03-01 23:14:11 +07:00
Tuan PM
0d4d269dc3
Add Kconfig, make easy to custom configurations
2018-03-01 23:07:26 +07:00
Tuan PM
7090311476
Merge branch 'master' into feature/kconfig
2018-03-01 22:34:02 +07:00
Tuan PM
c06c24a947
fixed default protocol is 3.11
2018-03-01 22:30:15 +07:00
Tuan PM
2c0db6a669
correct length and malloc storate for lwt binary message
2018-03-01 22:30:25 +07:00
Tuan PM
8fe50dda5f
add Kconfig
2018-02-27 23:32:31 +07:00
Tuan PM
7e3e296581
reset state when stop
2018-02-27 23:14:09 +07:00
Tuan PM
c9e55caa5b
Merge branch 'master' of https://github.com/tuanpmt/espmqtt
2018-02-27 23:02:40 +07:00
Tuan PM
a5ef145163
check transport before use & close the connection if it connects failed
2018-02-27 23:02:35 +07:00
Tuan
fbf592dec3
Merge pull request #24 from StudioSophisti/master
...
Allow non-string lwt message
2018-02-27 23:00:43 +07:00
Tijn Kooijmans
7322fc79e9
fixed indents and bracets
2018-02-27 16:54:13 +01:00
Tuan PM
a8c78d5cbf
Remove Paypal donate
2018-02-27 10:52:35 +07:00
Tuan PM
ba1c4f2722
Merge pull request #23 from JasonJiaJie/master
...
Keppalive issue
2018-02-26 15:32:18 +07:00
JasonJiaJie
8c34c8df68
Keppalive issue
...
There is no keepalive packget if current time is very large. Caused by integer overflow.
2018-02-26 16:06:42 +08:00
Tijn Kooijmans
3d99122944
increased password length
2018-02-22 15:57:25 +01:00
Tijn Kooijmans
1b0ef39255
updated config
2018-02-22 13:16:55 +01:00
Tijn Kooijmans
f0f3e11f6b
allow setting of cusom length lwt msg
2018-02-22 13:16:41 +01:00
Tuan PM
dd6969098d
Add default scheme, resolve #21 , remove sdkconfig in examples
2018-02-22 10:07:57 +07:00
Tuan PM
4aaadb333a
fixed wrong msg type in websocket connection
2018-02-17 12:53:17 +07:00
Tuan PM
6c9b83237c
add link install toolchain
2018-02-17 12:26:35 +07:00
Tuan PM
4721921bd2
add -j4 for make project with travis
2018-02-17 12:16:06 +07:00
Tuan PM
e729246fc1
add travis build
2018-02-17 12:07:35 +07:00
Tuan PM
3ca4129f78
download
2018-02-17 12:01:32 +07:00
Tuan PM
ebf108452a
remove newline
2018-02-17 12:00:43 +07:00
Tuan PM
4fd75c1b4b
Add header license
2018-02-17 11:42:41 +07:00
Tuan PM
66b21752ba
clean session =1, not true
2018-02-17 01:15:15 +07:00
Tuan PM
782e1f8042
Add support ws and wss
2018-02-17 01:03:35 +07:00
Tuan PM
c5ff6dd05f
doc about support mqtt & mqtts
2018-02-16 22:54:38 +07:00
Tuan PM
33e2324098
Finishing mqtt client
2018-02-16 22:48:22 +07:00
Tuan PM
3115db19ae
Add mqtt over ssl sample
2018-02-16 22:00:57 +07:00
Tuan PM
503c540eee
remove license header and add doc
2018-02-16 18:46:13 +07:00
Tuan PM
05d2b09b37
do not enqueue with qos=0
2018-02-16 02:50:29 +07:00
Tuan PM
af2de9263f
remove build folder
2018-02-16 02:46:20 +07:00
Tuan PM
083f8789ac
Add support outbox, changed API
2018-02-16 02:40:16 +07:00
Tuan PM
fa2f6fa784
Merge pull request #11 from avitex/master
...
Add Freertos headers
2018-02-08 15:47:26 +07:00
avitex
1cd2223086
Add freertos headers
2017-08-25 19:20:36 +10:00
Tuan PM
2967332b95
remove Kconfig
2017-08-09 19:34:02 +08:00
Tuan PM
9fb3ca3ae3
Merge pull request #10 from StudioSophisti/master
...
improved disconnect/reconnect cycle
2017-08-09 19:33:33 +08:00
Tijn Kooijmans
559c977dda
removed newline in publish info log
2017-07-28 10:03:21 +02:00
Tijn Kooijmans
e2231aa020
fixed dis/re-connect when internet connection fails
2017-07-28 09:36:38 +02:00
Tijn Kooijmans
6104cb9365
Revert "Revert "Revert "utilizing pingreq to check if server is still reachable"""
...
This reverts commit e0617af883 .
2017-07-26 14:55:26 +02:00
Tijn Kooijmans
e0617af883
Revert "Revert "utilizing pingreq to check if server is still reachable""
...
This reverts commit 85e2ed9eee .
2017-07-26 14:47:01 +02:00
Tijn Kooijmans
ba68cf7ed8
fixed memory leak in sending queue
2017-07-26 14:24:52 +02:00
Tijn Kooijmans
85e2ed9eee
Revert "utilizing pingreq to check if server is still reachable"
...
This reverts commit f49ecd1b92 .
2017-07-26 14:22:42 +02:00