148 Commits

Author SHA1 Message Date
David Cermak e442c19f4e Added API documentaton to public headers 2019-05-15 13:40:14 +02:00
David Cermak 752953dc3b added mqtt api locks, so methods can be executed from user context
closes #67, closes #90, closes https://github.com/espressif/esp-idf/issues/2975
2019-02-13 15:21:32 +01:00
Mikael Kanstrup df455d2a5f Add client force reconnect function
esp-mqtt library is unaware of underlying network connectivity states
and current auto reconnect mechanism is built around timed retry
attempts every MQTT_RECONNECT_TIMEOUT_MS.

As application code usually keeps track of network connectity state
export a new function that application can use to request a forced
reconnect attempt as soon as connected to the network.
2019-02-04 08:44:55 +01:00
Tuan 2b49d37f8d Add BEFORE_CONNECt event and refresh the connection option 2018-11-09 23:26:35 +08:00
David Cermak 85f2eddabd commented event fields, added description of supplied user data to user event handler
closes #66
2018-10-25 09:25:41 +02:00
Riccardo Binetti d2bcdd84a1 Add mutual SSL auth config to mqtt_client
picked from master
2018-10-16 08:29:47 +02:00
Riccardo Binetti 4db9918220 mqtt_client: add session_present field to mqtt_event
Populate it using the CONNACK packet
2018-10-15 11:31:46 +02:00
David Cermak c1ce30f693 Added doxygen tags for API reference documentation 2018-08-21 15:31:10 +02:00
David Cermak 3bbdebcca9 bugfix for longer data on ws transport 2018-08-21 11:55:36 +02:00
Tony da573b482b Adding ESP32 core selection for MQTT task (#53)
* Adding core selection in KConfig and starting thread with those parameters

* Updating for code consistency
2018-07-25 13:58:38 +07:00
esinayana 677db77415 Fix C++ build, add extern "C" to header file. (#49) 2018-05-27 08:50:31 +07:00
Tuan PM 75d3c65cb6 Add error handling for mqtt, fixed some issues 2018-05-03 21:50:24 +07:00
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
Tuan PM 60567cb238 Add vTaskDelay in STATE_WAIT_TIMEOUT, resolve #27 2018-03-02 11:24:27 +07:00
Tuan PM 0d4d269dc3 Add Kconfig, make easy to custom configurations 2018-03-01 23:07:26 +07:00
Tuan PM 8fe50dda5f add Kconfig 2018-02-27 23:32:31 +07: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 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 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 083f8789ac Add support outbox, changed API 2018-02-16 02:40:16 +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
Tijn Kooijmans e2231aa020 fixed dis/re-connect when internet connection fails 2017-07-28 09:36:38 +02:00
Tijn Kooijmans 0d888bb101 added auto-reconnect option to settings 2017-07-23 21:31:33 +02:00
Tijn Kooijmans 65d91f3908 implemented disconnected callback 2017-07-23 21:28:23 +02:00
Tijn Kooijmans fa087cb2fe implemented support for non-string type last will messages 2017-07-21 21:39:24 +02:00
Tijn Kooijmans be91ed4a2c added mqtt unsubscribe function 2017-07-21 21:31:04 +02:00
Tijn Kooijmans 85b37ee92b fixed compiler errors for SSL mode 2017-07-21 21:23:41 +02:00
jarek 7da9e28a86 Merge branch 'espnode/master' of https://github.com/jnwatts/espmqtt into jnwatts-espnode/master 2017-05-14 22:38:36 +02:00
jarek 5e29ede550 Merge branch 'fix-typo-remove-deprecation' of https://github.com/alwint3r/espmqtt into alwint3r-fix-typo-remove-deprecation 2017-05-14 21:40:01 +02:00
jarek 6f6b55a254 Add const in funtions arguments
Added const to fce mqtt_subscribe and mqtt_publish
2017-05-14 20:04:22 +02:00
Alwin Arrasyid 4d89598338 Fix typo in header file and remove deprecation message in component.mk file 2017-02-25 16:35:02 +07:00
Josh Watts 8d1e6ec202 Allow user to provide their own low level I/O
If not sepcified, will fall back to library provided TCP and optional SSL
2017-02-18 19:42:31 -05:00
Josh Watts 70322b5a59 Replace void* with specific types 2017-02-18 19:06:18 -05:00
Josh Watts ec8a673c3f Add missing struct names 2017-02-18 18:59:11 -05:00
Ronny Hansen 5a931e2fa3 Committer: Ronny Hansen <ronnyhan@gmail.com>
On branch SSL
 Changes to be committed:
	modified:   include/mqtt.h
	modified:   mqtt.c

Implemented support for SSL/TLS. Uses config setting "CONFIG_MQTT_SECURITY_ON" to enable this feature.
Breaking changes on client_connect() interface to support SSL, but shouldnt be an issue as this is an
internal interface
2016-12-28 01:57:17 +01:00
Tuan PM ba966c7a9a Initial release 2016-09-12 21:15:28 +07:00
Tuan PM d22b7d7ada -add queue
- add ping timer
- add subscribe function
2016-09-12 17:05:28 +07:00
Tuan PM 526109fd37 Resolve conenct issues with ip 2016-09-12 13:06:48 +07:00
Tuan PM eb1595f1e8 Add mqtt connect msg 2016-09-11 21:42:34 +07:00
Tuan PM 0fdec5a93d Initial Project 2016-09-11 10:10:24 +07:00