Broadcast message to WiFlys

Hello,

So with 802.15.4 Xbee’s, you can send a broadcast packet that will go to every Xbee within range. With the WiFly, as a wifi device, you have to open a socket to the wifly, send data, close socket, open the socket for the next WiFly, etc.

Is there any way to send a wifi message that every WiFly on the AP will hear?

Thanks.

Using UDP, you can send a message to the broadcast address and every module should receive it (if it’s implemented on the WiFly module). The address " 255.255.255.255" is the limited broadcast address. If you send a UDP packet to this address any device on the local network will receive it. However, routers never forward messages sent to this address so only devices on the network segment receive it. You can send a message to a specific IP range by setting the lower octet to 255. For example, to broadcast a packet to all devices on the network “192.168.1” use the broadcast address “192.168.1.255”.