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 [2018/12/24 22:45] resonance [code] |
projets:esposc:accueil [2019/01/27 14:41] (Version actuelle) resonance [code] |
||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| * Contexte : | * Contexte : | ||
| * Fichiers : lien | * Fichiers : lien | ||
| - | * Lien : lien vers un site éventuellement | + | * Lien : d' |
| Ligne 16: | Ligne 16: | ||
| **Attention a bien choisir dans Outils dans Arduino (logiciel): | **Attention a bien choisir dans Outils dans Arduino (logiciel): | ||
| - | * Wemos D1 R2 & mini | + | * Wemos D1 R2 & mini (apres avoir installer le driver ESP dans outils > ajouter carte) |
| * baudrate 115200 | * baudrate 115200 | ||
| 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 |
| } | } | ||