Add mutual SSL auth config to mqtt_client

picked from master
This commit is contained in:
Riccardo Binetti authored and David Cermak committed 2018-10-16 08:29:47 +02:00
1 parent 52cb6980b0
commit d2bcdd84a1
2 files changed
+8

No files matched your search

+2
View File
@@ -83,6 +83,8 @@ typedef struct {
int task_stack; /*!< MQTT task stack size, default is 6144 bytes, can be changed in ``make menuconfig`` */
int buffer_size; /*!< size of MQTT send/receive buffer, default is 1024 */
const char *cert_pem; /*!< pointer to CERT file for server verify (with SSL), default is NULL, not required to verify the server */
const char *client_cert_pem; /*!< pointer to CERT file for SSL mutual authentication, default is NULL, not required if mutual authentication is not needed. If it is not NULL, also `client_key_pem` has to be provided. */
const char *client_key_pem; /*!< pointer to PEM private key file for SSL mutual authentication, default is NULL, not required if mutual authentication is not needed. If it is not NULL, also `client_cert_pem` has to be provided. */
esp_mqtt_transport_t transport; /*!< overrides URI transport */
} esp_mqtt_client_config_t;