<?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>Zigbee - checking link status after a send</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85253/zigbee---checking-link-status-after-a-send</link><description>I am at the final stage in the current project but the send status is not updating correctly when 
 an attribute value is sent. For example in the following code: 
 
 zcl_status = zb_zcl_set_attr_val(NTEX, ZB_ZCL_CLUSTER_ID_NTEX, 
 ZB_ZCL_SERVER_ROLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 08:53:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85253/zigbee---checking-link-status-after-a-send" /><item><title>RE: Zigbee - checking link status after a send</title><link>https://devzone.nordicsemi.com/thread/355454?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 08:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81924d3f-fb57-4f29-ad83-3ff768c4c5b3</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Rob,&lt;/p&gt;
[quote user=""]The above code always reports as if the message is sent even when the ZC is powered down.[/quote]
&lt;p&gt;This is because&amp;nbsp;zb_zcl_set_attr_val() is not used to send the attribute value to another device, but to set the attribute value on the current device. So when for example a temperature sensor is reading a new temperature value you can use&amp;nbsp;zb_zcl_set_attr_val() to update the measured value attribute from the temperature measurement cluster to the new value locally on the device. The return value,&amp;nbsp;zcl_status, indicates whether the attribute value was successfully updated on the local device or not.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;Is there a very simple way to check that the link to the coordinator is ok so I can set a flag to&lt;/p&gt;
&lt;p&gt;force a rejoin ? Or if not what is the easiest way to check the data has arrived ?&lt;/p&gt;[/quote]
&lt;p&gt;If the device is an end device and the coordinator is the parent device, then it should automatically try to rejoin the network after the communication fails. Any device should also discover that something is wrong if it sends&amp;nbsp;packets&amp;nbsp;expecting a response without receiving one. This can be any sort of response, such as a response specific to the packet, default ZCL response, ACK, etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>