Hi all,
I have a question regarding the command SteamSendDataBlock. I am using the CSR Mesh Switch and Light example with Android Application.
On the Android Application, I can assign switch and light to a group so that they only communicate with each other in the group.
In the Stream model API , the StreamStartSender command says "Starts a data stream sender to stream data to a specified device.", and this is defined by the dest_id, which further states "Destination ID of the CSRmesh device or a group of devices which to stream the data".
I would like to use the StreamSendDataBlock command as it is easier. However, the command says "Sends a single block of data to the speicified device There will be no acknowledgement from the receiver for receiving the data block.". The device to send to is defined by dest_dev_id which states "Device ID of the CSRmesh device to which data block needs to be sent".
I know that using a dest_dev_id of 0x00 will broadcast the message. But will this broadcast to all the nodes or just only nodes within the same group? How can i broadcast only to nodes in the group and not other nodes that don't belong to the group?
Thanks.
Hi,
Using a dest_dev_id of 0x00 will broadcast the message to all nodes. You can send the message to nodes in the group only by using group id as dest_dev_id.
Thanks.
how can i know "device_id" or "group_id"?
how can i know "device_id" or "group_id"?