mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 01:32:05 +00:00
ESP-NOW + Wi-Fi
This commit is contained in:
@@ -17,6 +17,7 @@ static void mqtt_publish_task(void *arg) {
|
||||
// Publish a message every 5 seconds
|
||||
esp_mqtt_client_publish(mqtt_client, "/esp/test", "Hello!", 0, 1, 0);
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
ESP_LOGI(MQTT_TAG, "Called task to publish topic /esp/test");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user