<?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>Broadcast Leave Request</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95809/broadcast-leave-request</link><description>I need to send broadcast leave request to all the zigbee devices connected to the network. 
 
 zdo_mgmt_leave_req function sends leave request to a particular device but we want to broadcast this request to all devices connected to the network, how do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jan 2023 13:01:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95809/broadcast-leave-request" /><item><title>RE: Broadcast Leave Request</title><link>https://devzone.nordicsemi.com/thread/405480?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 13:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf38607-efe5-416b-8781-7e6f8853c4a3</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Unfortunately there are no options to broadcast that every device should leave. In addition, according to the spec, the validation of the leave request states that if the message is sent to a broadcast address, then the message shall be dropped and no further processing shall be performed.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674046599420v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you really want to automate the leaving of every device in the network you will have to script it yourself by for instance gathering all the device ids, and to not iterate through them with the leave network request command and not iterate to the next device before the device has left the network. Or you could have the coordinator to go through the neighbor table and send a leave command to every router listed with a flag stating that the routers should also remove their child-nodes from the network but keep in mind that this may leave you in a situation where you have routers that are not neighbors on the network and out of reach of the coordinator.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>