4 years, 5 months ago.

UDP Broadcast

I would like my K64f to recieve a mesage from a device that is broadcasting on a closed network.

It does not appear as if UDP broadcast is available in the UDP sockets class.

How do I enable it.

Thanks,

Joe

1 Answer

4 years, 5 months ago.

Hi Joe,

Try to set set socket options to allow broadcast receiving: https://os.mbed.com/docs/mbed-os/v5.14/mbed-os-api-doxy/class_u_d_p_socket.html#acf7bb8fc53f7f21841fd0c86a12f29ae

Regards, Pekka

Thanks for the reply, what socket options should be set for receiving broadcast UDP packets?

posted by joe holdsworth 05 Nov 2019