mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-10 09:03:23 +00:00
ESPNOW + WiFi
This commit is contained in:
@@ -15,7 +15,7 @@ static void mqtt_publish_task(void *arg) {
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
// Publish a message every 5 seconds
|
// Publish a message every 5 seconds
|
||||||
esp_mqtt_client_publish(mqtt_client, "/esp/test", "Hello!", 0, 1, 0);
|
esp_mqtt_client_publish(mqtt_client, "/bitrider/temp", "Hello!", 0, 1, 0);
|
||||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||||
ESP_LOGI(MQTT_TAG, "Called task to publish topic /esp/test");
|
ESP_LOGI(MQTT_TAG, "Called task to publish topic /esp/test");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user