Skip to content

Commit 49d02a6

Browse files
Fixed an issue with compiling for ESP32
1 parent c5b1007 commit 49d02a6

5 files changed

Lines changed: 2582 additions & 2245 deletions

File tree

examples/MicroOsc_echo_wifi_udp_esp32/MicroOsc_echo_wifi_udp_esp32.ino

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ WiFiUDP udp;
3333
unsigned int receivePort = 8888;
3434

3535
IPAddress broadcastIp(255, 255, 255, 255);
36-
IPAddress sendIp(192, 168, 1, 225);
36+
IPAddress sendIp(192, 168, 1, 210);
3737
unsigned int sendPort = 7777;
3838

3939

@@ -97,6 +97,7 @@ void setup() {
9797

9898
void receivedOscMessage( MicroOscMessage& message) {
9999

100+
100101
// WHEN A MESSAGE IS MATCHED IT ECHOS IT THROUGH SERIAL(ASCII) AND UDP
101102

102103
if ( message.fullMatch("/test/i", "i") ) {
@@ -153,40 +154,20 @@ void loop() {
153154
if ( printIPChrono.hasPassed(5000) ) {
154155
printIPChrono.restart();
155156

156-
Serial.print("DEBUG ESP32 IP is :");
157+
Serial.print("ESP32 IP is :");
157158
Serial.println(WiFi.localIP());
158-
}
159-
160-
oscUdp.receiveMessages( receivedOscMessage );
161-
/*
162-
oscUdp.sendMessage("/test/i", "i", (uint32_t) millis());
163-
delay(1000);
164-
165-
oscUdp.sendMessage("/test/f", "f", ((float)millis()) *0.001);
166-
delay(1000);
167159

168-
uint8_t blob[3];
169-
blob[0] = millis() % 256;
170-
blob[1] = (millis()+1) % 256;
171-
blob[2] = (millis()+2) % 256;
172-
oscUdp.sendMessage("/test/b", "b", 3 , blob);
173-
delay(1000);
160+
Serial.print("ESP32 receive port is :");
161+
Serial.println(receivePort);
174162

175-
const char * hello = "hello";
176-
oscUdp.sendMessage("/test/s", "s", hello);
177-
delay(1000);
163+
Serial.print("Target IP is :");
164+
Serial.println(sendIp);
178165

179-
uint8_t midi[4];
180-
midi[0] = millis() % 128;
181-
midi[1] = (millis()+1) % 128;
182-
midi[2] = (millis()+2) % 128;
183-
midi[3] = (millis()+3) % 128;
184-
oscUdp.sendMessage("/test/m", "m", midi);
185-
delay(1000);
186-
187-
188-
oscUdp.sendMessage("/test/t", "t", (uint64_t)(millis()));
189-
delay(1000);
190-
*/
166+
Serial.print("Target port is :");
167+
Serial.println(sendPort);
168+
169+
}
191170

171+
oscUdp.receiveMessages( receivedOscMessage );
172+
192173
}

examples/MicroOscSlip_ms_debugLed/MicroOscSlip_ms_debugLed.ino renamed to examples/MicroOsc_ms_debugLed_slip/MicroOsc_ms_debugLed_slip.ino

File renamed without changes.

0 commit comments

Comments
 (0)