Closed UseruserOmar closed 10 months ago
Hi, can you share an example Châtaigne projet to test?
Hi, thanks for you reply.
You can send a test message to the ESP32 via the command tester under the OCS module.
Messages from the ESP32 to Chataigne should auto-add and be visible in the logger when something is received.
You only have to fill in the Local Port, Remote Host and Remote Port in Chataigne.
And fill in the following values in the code:
IPAddress ComputerIP(0, 0, 0, 0); IPAddress localIP(0, 0, 0, 0); unsigned int myReceivePort = 0000; unsigned int mySendPort = 0000;
Hi, again,
I noticed the 0.0.0.0 adresses in your code, but that is not a valid address. I believe certain libraries even consider it a null non-determined address.
Also, you are settings the computer and the ESP32 to the same address. If you are relying on Zeroconf, you have to code it in Arduino and set the proper IP adresses when they are determined.
Hi,
Yes that's correct I put them all on 0000 in this example code. But I will share the code and chataigne file again where I configured everything. I hope this makes it more clear.
Greetings!
In the following lines of code
// OSC settings
MicroOscUdp<1024> myMicroOsc(&ESPUdp, localIP, mySendPort);
should it not be ComputerIP
instead of localIP
?
It is confusing as your naming in not standard:
IPAddress ComputerIP(0, 0, 0, 0);
IPAddress localIP(0, 0, 0, 0);
unsigned int myReceivePort = 0000;
unsigned int mySendPort = 0000;
You would reduce confusion with the following naming convention:
IPAddress sendIP(0, 0, 0, 0);
unsigned int sendPort = 0000;
IPAddress myIP(0, 0, 0, 0);
unsigned int myPort = 0000;
Well look at this, everything works! I think I just completely missed that wrong setting. Thanks a lot for your time and tips! :)
Greetings, Omar
Hello Thomas,
I have run into an issue with sending OSC messages from an ESP32 connected with ethernet to my laptop running Chataigne. And I would like to know if you can help me out to find if the issue is coming from the MicroOSC library that I am using.
The following things that I have tried seem to work properly:
I also checked if the port in Chataigne matched with the port on the ESP32, which it did. But i couldn’t make it to send OCS messages from the ESP32 to Chataigne, not via ethernet neither via WiFi. I don’t know yet if the issue is coming from the ESP32 itself or the MicroOSC library.
I will attach the code to this issue file so you can have a look at what's happening. The code contains the ethernet setup and makes the EPS32 send a OCS message every 1000ms and enables it to receive a OSC message.
I hope I gave you all the necessary information and I look forward to your reply. If you any questions, please let me know!
Greetings, Omar