<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How can send get and set messages to all nodes of a net?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77400/how-can-send-get-and-set-messages-to-all-nodes-of-a-net</link><description>Hi, 
 I have an application where it would be beneficial to be able to send get and set messages to individual groups, nodes elements, etc. All of which are not necessarily the same model. 
 I am having a hard time figuring out what module in the API</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jul 2021 10:57:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77400/how-can-send-get-and-set-messages-to-all-nodes-of-a-net" /><item><title>RE: How can send get and set messages to all nodes of a net?</title><link>https://devzone.nordicsemi.com/thread/319759?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 10:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:194b0677-6514-415c-bd0b-126b30ac20a0</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Messages are for a specific model, e.g. &amp;quot;generic on/off&amp;quot;, and the way this is handled in Bluetooth mesh is that a more &amp;quot;advanced&amp;quot; model (e.g. with the ability to set dimming levels) in addition exposes a more &amp;quot;simple&amp;quot; model controlling the same state (e.g. on / off, setting dimming level to 100% / 0%).&lt;/p&gt;
&lt;p&gt;Further, there is a requirement that each &amp;quot;element&amp;quot;, that is, each addressable unit on a node, only have at most one of each model. I mention this because it is important for how messages are routed on the node: A message is sent to the one and only model on that element (address), that is of the correct type.&lt;/p&gt;
&lt;p&gt;There is an &amp;quot;all nodes&amp;quot; group address, that can be used to send messages to all nodes, but the message gets addressed only to the first element on that node. This means in order to reach models that are not the first element on their node, you must either use the unicast address (for that element) or use a group address that it subscribes to. This does indeed require some configuration work (with implications for scalability in the sense that this complexity needs some thought), but if you are in control of the peripheral (or otherwise the configuration of the network), it should be possible to automate. (E.g. automatically add a subscription to a fixed group address to all elements that is to receive the given message. That is, not the specified &amp;quot;all nodes&amp;quot; address, but an address of your choosing, either fixed or dynamically chosen by the provisioner.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>