#include const char* ssid = "AndroidAP"; const char* password = "automne52"; const char* host = "192.168.224.8"; const int port = 80; void setup() { Serial.begin(9600); delay(1000); Serial.println("Connecting to WiFi"); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting to WiFi..."); } Serial.println("Connected to WiFi"); } void loop() { WiFiClient client; if (client.connect(host, port)) { Serial.println("ici"); } else { Serial.println("Failed to connect to server"); } delay(5000); // Attendre 5 secondes avant d'envoyer une nouvelle valeur de température }