How to send a UDP broadcast?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

[WICED-SDK-2.2.1]

Im trying to do a UDP broadcast on port 56700,  do I send it on an IP address of 255.255.255.255

should my wiced_udp_send call look like this?

const wiced_ip_address_t INITIALISER_IPV4_ADDRESS( target_ip_addr, 0xFFFFFFFF ); .

.

.

.

wiced_udp_send(&udp_socket, &target_ip_addr, 56700, packet)

Is there anything special I need to enable?

0 Likes
1 Reply
Anonymous
Not applicable
The snip.udp_transmit app provides an example of how to send a

UDP packet to a broadcast address on the subnet 192.168.0.x
0 Likes