~~~~~~~~~~~~~~~~~~~~~~~~
This issue was solved by enabling SO_REUSEADDR in config
~~~~~~~~~~~~~~~~~~~~~~~~
I'm porting some code from Arduino IDE to ESP-IDF using Arduino component.
The code sends UDP packets collected from sensors to a connected client.
Also it listens on a port for UDP packets coming from the connected client using WiFiUDP.parsePacket() for configuration messages.
Everything works fine when using Arduino IDE.
When using ISP-IDF everything works except parsing incoming packets.
When trying WiFiUDP.begint(port) to start listening for UDP packets on port serial says:
Code: Select all
[E][WiFiUdp.cpp:58] begin(): could not set socket option: 109
I'm including these libraries:
Code: Select all
#include "WiFi.h"
#include "WiFiUdp.h"
#include "esp_wifi.h"
#include "esp_system.h"
is anybody experiencing this?!
cheers!