ESPNOW + WiFi

This commit is contained in:
2025-07-28 17:01:23 -04:00
parent fd5f3ace02
commit 3a2b95962f

View File

@@ -30,8 +30,8 @@ static void mqtt_publish_task(void *arg) {
}
}
void mqtt_publish_temp (void *arg, float temp) {
esp_mqtt_client_handle_t client = (esp_mqtt_client_handle_t)arg;
void mqtt_publish_temp (float temp) {
//esp_mqtt_client_handle_t client = (esp_mqtt_client_handle_t)arg;
char temp_str[6];
snprintf(temp_str, sizeof(temp_str), "%.02f", temp);
esp_mqtt_client_publish(mqtt_client, "/bitrider/temp", temp_str, 0, 1, 0);_