David Cermak
e3b013e2db
Extended error structure to be used in mqtt library and include mqtt
...
specific errors.
Corrected typos in comments and log messages
2019-10-09 11:22:02 +02:00
João Cabral
67042a1315
ADD: Get the response code from a failing connection.
...
This commit adds an event information "connect_return_code" that is written
when the client state is MQTT_STATE_INIT, and the connection fails.
This event info can then be written by the user app to find out the reason
of the fail connection.
Merges https://github.com/espressif/esp-mqtt/pull/100
2019-10-09 09:23:53 +02:00
David Cermak
9fbd7d9244
docs: Updated publish message return code to make it clear that message_id is always 0 for QoS 0
...
Closes https://github.com/espressif/esp-mqtt/issues/127
2019-09-30 08:05:51 +02:00
David Cermak
0234f6e538
client: added config option to enable global ca strore
...
closes https://github.com/espressif/esp-mqtt/issues/125
2019-08-23 14:33:35 +02:00
Henning Fleddermann
9a56cc7e14
add der-format support for tls-certificates/keys
2019-08-22 15:11:49 +02:00
David Cermak
117eef2dad
psk ssl could be used to authenticate with mqtt broker as an alternative to cerificate verification
...
Closes https://github.com/espressif/esp-mqtt/issues/95
2019-07-22 14:26:47 +02:00
David Cermak
0cc4077bd3
modified error type to be a generic handle to capture different types of errors
2019-07-04 09:12:40 +02:00
David Cermak
65bf2255d7
adding error event with error code
2019-07-03 08:49:54 +02:00
David Cermak
edd67e1c8c
used event loop only if defined in supported features (enabled by macros) for backward compatibily with older IDFs
2019-06-06 17:00:03 +02:00
David Cermak
eeebd0215c
support for esp event loop library while keeping backward compatible mode if callback configured
2019-05-16 16:29:33 +02:00
David Cermak
18b6f2c582
Fixed formatting for all files to comply with idf style formats
2019-05-15 13:40:14 +02:00
David Cermak
e442c19f4e
Added API documentaton to public headers
2019-05-15 13:40:14 +02: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
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
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
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