Skip to content

Commit

Permalink
Get default IEEE when zigpy is writing nwk info
Browse files Browse the repository at this point in the history
  • Loading branch information
DamKast committed Nov 14, 2023
1 parent 55cf1b4 commit 573bd98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zigpy_zboss/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ async def write_network_info(self, *, network_info, node_info):
IEEE=node_info.ieee
)
)
else:
# Get the default device IEEE set by ZBOSS
res = await self._api.request(
c.NcpConfig.GetLocalIEEE.Req(
TSN=self.get_sequence(), MacInterfaceNum=0))
node_info.ieee = res.IEEE

await self._api.request(
request=c.NcpConfig.SetZigbeeRole.Req(
Expand Down

0 comments on commit 573bd98

Please sign in to comment.