mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 08:16:08 +00:00
ESPNOW + WiFi
This commit is contained in:
@@ -22,7 +22,7 @@ static void mqtt_publish_task(void *arg) {
|
|||||||
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
||||||
|
|
||||||
// Publish a message every 5 seconds
|
// Publish a message every 5 seconds
|
||||||
esp_mqtt_client_publish(mqtt_client, "/bitrider/temp", "Hello!", 0, 1, 0);
|
esp_mqtt_client_publish(mqtt_client, "/bitrider/temp", tsens_value, 0, 1, 0);
|
||||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||||
ESP_LOGI(MQTT_TAG, "Called task to publish topic /bitrider/temp");
|
ESP_LOGI(MQTT_TAG, "Called task to publish topic /bitrider/temp");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user