Sure, I have attached the client and server codes. Any questions please let me know, and thanks for your time!
On Tue, Jun 9, 2015 at 12:02 PM, Lankswert, Patrick < patrick.lankswert at intel.com> wrote: > 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: > iotivity-dev-bounces at lists.iotivity.org] *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/20150610/25677725/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cesar_server.tar.gz Type: application/x-gzip Size: 4220 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150610/25677725/attachment.gz> -------------- next part -------------- A non-text attachment was scrubbed... Name: cesar_client.tar.gz Type: application/x-gzip Size: 3161 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150610/25677725/attachment-0001.gz>
