UDP socket couldn't receive broadcast message

teckhaokoh
Posts: 27
Joined: Wed Sep 21, 2016 6:40 am

UDP socket couldn't receive broadcast message

Postby teckhaokoh » Fri May 22, 2020 2:45 am

I'm working on the bacnet IP, and I found that the UDP socket doesn't receive the broadcast message from the client.

I'm using ESP-IDF 4.2, I've set IP_SOF_BROADCAST and IP_SOF_BROADCAST_RECV to 1 in opt.h as suggested.
I've set socket options of SO_BROADCAST and bind the socket to INADDR_ANY too.

Anything I missed out?
Or anyone have working example code as a reference?

Who is online

Users browsing this forum: dpmcgabriel and 25 guests