Skip to content

Commit

Permalink
use ext pan id when forming network
Browse files Browse the repository at this point in the history
  • Loading branch information
DamKast committed Nov 14, 2023
1 parent 573bd98 commit 2647936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions zigpy_zboss/commands/nwk_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class NWK(t.CommandsBase):
"distributed network"
),
t.Param(
"IEEEAddr",
"ExtPanId",
t.EUI64,
"The ieee address of the device"
"The network extended PAN ID."
),
)
),
Expand Down
8 changes: 1 addition & 7 deletions zigpy_zboss/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ 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 Expand Up @@ -283,7 +277,7 @@ async def _form_network(self, network_info, node_info):
ScanDuration=0x05,
DistributedNetFlag=0x00,
DistributedNetAddr=t.NWK(0x0000),
IEEEAddr=node_info.ieee
ExtPanId=network_info.extended_pan_id
)
)

Expand Down

0 comments on commit 2647936

Please sign in to comment.