mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-19 00:29:03 +00:00
.
This commit is contained in:
@@ -57,8 +57,10 @@ static void mqtt_publish_task(void *arg) {
|
||||
//esp_mqtt_client_publish(mqtt_client, "/bitrider/pwm-3", pwm_3_str, 0, 1, 0);
|
||||
//esp_mqtt_client_publish(mqtt_client, "/bitrider/pwm-4", pwm_4_str, 0, 1, 0);*/
|
||||
esp_mqtt_client_publish(mqtt_client, "nodes/outdoors/foxie2/sensors/temperature", temp_str, 0, 1, 0);
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
ESP_LOGI(MQTT_TAG, "Called task to publish topic /bitrider/temp");
|
||||
esp_mqtt_client_publish(mqtt_client, "nodes/outdoors/foxie2/sensors/humidity", humidity_str, 0, 1, 0);
|
||||
esp_mqtt_client_publish(mqtt_client, "nodes/outdoors/foxie2/sensors/pressure", pressure_str, 0, 1, 0);
|
||||
vTaskDelay(pdMS_TO_TICKS(3000));
|
||||
ESP_LOGI(MQTT_TAG, "Called task to publish topic \"nodes/outdoors/foxie2/#\"");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user