TLS support
This commit is contained in:
@@ -25,13 +25,14 @@ extern "C"
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
const char *broker_url; /**< MQTT broker URL (e.g., "mqtt://192.168.1.100") */
|
||||
int broker_port; /**< MQTT broker port (usually 1883 for non-secure) */
|
||||
const char *client_id; /**< Unique client identifier */
|
||||
const char *username; /**< Username (can be NULL if not required) */
|
||||
const char *password; /**< Password (can be NULL if not required) */
|
||||
int keepalive; /**< Keepalive interval in seconds (0 for default) */
|
||||
int network_timeout_ms; /**< Network timeout in milliseconds (0 for default) */
|
||||
const char *broker_url; /**< MQTT broker URL (e.g., "mqtt://192.168.1.100") */
|
||||
int broker_port; /**< MQTT broker port (usually 1883 for non-secure) */
|
||||
const char *client_id; /**< Unique client identifier */
|
||||
const char *username; /**< Username (can be NULL if not required) */
|
||||
const char *password; /**< Password (can be NULL if not required) */
|
||||
const char *ca_cert_pem; /**< CA certificate in PEM format (NULL to disable TLS verification) */
|
||||
int keepalive; /**< Keepalive interval in seconds (0 for default) */
|
||||
int network_timeout_ms; /**< Network timeout in milliseconds (0 for default) */
|
||||
} mqtt_config_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user