?sending message into n device? could be interpreted into two cases.


One is the after finding the devices and send to them.

           e.g) find the ?notification alarm? resource and send the message to 
them as single shot.

           ? This need to be handled from the Group concept.

The other is broadcasting the message in to the network.

e.g) fire alarm message need to be sent as a single messaging.

           ? We can think about the new special resource which receives the 
broadcast(multicast) message except the advertisement presence message.



Cesar, what is yours?



BR, Uze Choi

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Lankswert, Patrick
Sent: Wednesday, June 10, 2015 11:59 PM
To: Cesar Meira
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Broadcast messages



Cesar,



It was not obvious to me where you were attempting to send a broadcast.



Pat



From: Cesar Meira [mailto:[email protected]] 
Sent: Wednesday, June 10, 2015 7:45 AM
To: Lankswert, Patrick
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Broadcast messages



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:[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 --------------
HTML ?????? ??????????????...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150611/8ceb6992/attachment.html>

Reply via email to