Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
projets:esposc:accueil [2019/01/10 16:15] resonance [ESP OSC] |
projets:esposc:accueil [2019/01/27 14:41] (Version actuelle) resonance [code] |
||
|---|---|---|---|
| Ligne 38: | Ligne 38: | ||
| WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP | WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP | ||
| - | const IPAddress outIp(192, | + | const IPAddress outIp(192, |
| const unsigned int outPort = 9999; // remote port to receive OSC | const unsigned int outPort = 9999; // remote port to receive OSC | ||
| const unsigned int localPort = 8888; // local port to listen for OSC packets (actually not used for sending) | const unsigned int localPort = 8888; // local port to listen for OSC packets (actually not used for sending) | ||
| Ligne 63: | Ligne 63: | ||
| Serial.println(WiFi.localIP()); | Serial.println(WiFi.localIP()); | ||
| - | Serial.println(" | + | Serial.println(" |
| Udp.begin(localPort); | Udp.begin(localPort); | ||
| Serial.print(" | Serial.print(" | ||
| Ligne 83: | Ligne 83: | ||
| Udp.endPacket(); | Udp.endPacket(); | ||
| msg.empty(); | msg.empty(); | ||
| - | delay(50); // latence minimal pour eviter crash | + | delay(5); // latence minimal pour eviter crash |
| } | } | ||