Page 1 of 1

(SOLVED) UDP.begin broken using Arduino component

Posted: Tue Aug 29, 2017 5:42 pm
by SO_yeah
Hi all!

~~~~~~~~~~~~~~~~~~~~~~~~
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
this behaviour is presented both when board is acting as AP and as station.

I'm including these libraries:

Code: Select all

#include "WiFi.h"
#include "WiFiUdp.h"
#include "esp_wifi.h"
#include "esp_system.h"
I'm updated to the 26 of August 2017 commits for esp-idf and arduino-esp32

is anybody experiencing this?!
cheers!