mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-11-19 00:39:37 +01:00
Add mqtt over ssl sample
This commit is contained in:
@@ -109,6 +109,7 @@ static void wifi_init(void)
|
||||
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));
|
||||
ESP_LOGI(TAG, "start the WIFI SSID:[%s] password:[%s]", CONFIG_WIFI_SSID, "******");
|
||||
ESP_ERROR_CHECK(esp_wifi_start());
|
||||
xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, false, true, portMAX_DELAY);
|
||||
}
|
||||
|
||||
static void mqtt_app_start(void)
|
||||
@@ -138,6 +139,5 @@ void app_main()
|
||||
|
||||
nvs_flash_init();
|
||||
wifi_init();
|
||||
vTaskDelay(10000/portTICK_RATE_MS);
|
||||
mqtt_app_start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user