Skip to content
Snippets Groups Projects
Commit 4bd5392b authored by Legy (Beini)'s avatar Legy (Beini) Committed by Jens Nolte
Browse files

Enable support for mqtt uris and mqtts

parent 916e591e
No related branches found
No related tags found
1 merge request!16Merge dev branch into master
......@@ -4,7 +4,14 @@
esp_mqtt_client_handle_t mqtt_client_start_c(mqtt_event_callback_t mqtt_event_handler) {
const esp_mqtt_client_config_t mqtt_cfg = {
#ifdef MQTT_URI
.uri = MQTT_URI,
#else
.host = MQTT_SERVER,
#endif
#ifdef MQTT_USE_GLOBAL_CA_STORE
.use_global_ca_store = true,
#endif
.event_handle = mqtt_event_handler,
.lwt_topic = STATUS_TOPIC,
.lwt_msg = STATUS_MESSAGE_OFFLINE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment