#include #include WiFiUDP udp; char packetBuffer[255]; unsigned int localPort = 9999; const char *ssid = "Livebox-2660"; const char *password = "qpw6sbLX9xG53MtkZo"; void setup() { Serial.begin(115200); // Connect to Wifi network. WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print(F(".")); } udp.begin(localPort); Serial.printf("UDP server : %s:%i \n", WiFi.localIP().toString().c_str(), localPort); } void loop() { static int compte = 0; compte++; sprintf(packetBuffer, "%d", compte); udp.beginPacket("192.168.1.14", localPort); // Remplacez cette adresse IP par celle du récepteur udp.printf(packetBuffer); udp.endPacket(); Serial.println("Packet sent"); delay(500); }