Cesar,

It should work with caveats. Can you share the code that you are using to 
broadcast the message?

Here are the caveats:

?         Broadcast message cannot be confirmed since you do not know who will 
receive it in advance

?         UDP and the broadcast (multicast) methods are best effort and 
therefore packets may be lost although very unlikely on a local network with a 
modern switch

Pat

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Cesar Meira
Sent: Tuesday, June 09, 2015 9:21 AM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] Broadcast messages

Hello all,

I did a little 'hello world' application using IoTivity, sending a command to a 
device to turn a led on and off. The server runs in a Raspberry Pi and the 
client in a Linux notebook.

The application did okay with this configuration. But then I tried to push a 
little forward and added another Raspberry Pi, with the exactly same code as 
the previous one. The objective was to test if the client could send "broadcast 
messages", and if similar devices could receive them.

I set both RPis to register the endpoint "/red_led". My idea was that when the 
client sends a command "turn on" to endpoint "/red_led", both RPis would 
receive this command, but in the end only one of them received the message.

So, is there a way to send a single broadcast message to "n" devices? Did I 
just misinterpreted the idea of the endpoint?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150609/2b27d0f7/attachment.html>

Reply via email to