mirror of
				https://github.com/alexandrebobkov/ESP-Nodes.git
				synced 2025-10-31 01:38:13 +00:00 
			
		
		
		
	BMP280
This commit is contained in:
		| @@ -33,11 +33,11 @@ static void mqtt_publish_task(void *arg) { | |||||||
|     esp_mqtt_client_handle_t client = (esp_mqtt_client_handle_t)arg; |     esp_mqtt_client_handle_t client = (esp_mqtt_client_handle_t)arg; | ||||||
|      |      | ||||||
|     while (1) { |     while (1) { | ||||||
|         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie3/sensors/temperature", temp_str, 0, 1, 0); |         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie2/sensors/temperature", temp_str, 0, 1, 0); | ||||||
|         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie3/sensors/humidity", humidity_str, 0, 1, 0); |         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie2/sensors/humidity", humidity_str, 0, 1, 0); | ||||||
|         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie3/sensors/pressure", pressure_str, 0, 1, 0); |         esp_mqtt_client_publish(mqtt_client, "nodes/indoors/foxie2/sensors/pressure", pressure_str, 0, 1, 0); | ||||||
|         vTaskDelay(pdMS_TO_TICKS(1500)); |         vTaskDelay(pdMS_TO_TICKS(1500)); | ||||||
|         ESP_LOGI(MQTT_TAG, "Called task to publish topic \"nodes/indoors/foxie3/#\""); |         ESP_LOGI(MQTT_TAG, "Called task to publish topic \"nodes/indoors/foxie2/#\""); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user