diff --git a/bellows/ezsp/v9/commands.py b/bellows/ezsp/v9/commands.py index 21188ca4..59907381 100644 --- a/bellows/ezsp/v9/commands.py +++ b/bellows/ezsp/v9/commands.py @@ -318,7 +318,11 @@ class GetTokenDataRsp(Struct): (), (t.EmberNodeId, t.EUI64, t.uint8_t, t.int8s, t.LVList[t.EmberNodeId]), ), - "changeSourceRouteHandler": (0x00C4, (), (t.EmberNodeId, t.EmberNodeId, t.Bool)), + "incomingNetworkStatusHandler": ( + 0x00C4, + (), + tuple({"errorCode": t.EmberStackError, "target": t.EmberNodeId}.values()), + ), "setSourceRoute": ( 0x00AE, (t.EmberNodeId, t.LVList[t.EmberNodeId]), diff --git a/bellows/ezsp/v9/types/named.py b/bellows/ezsp/v9/types/named.py index cc437b2c..e0ffe429 100644 --- a/bellows/ezsp/v9/types/named.py +++ b/bellows/ezsp/v9/types/named.py @@ -37,6 +37,7 @@ EmberSignature283k1Data, EmberSignatureData, EmberSmacData, + EmberStackError, EmberStatus, EmberZdoConfigurationFlags, EmberZllKeyIndex, diff --git a/tests/test_ezsp_v9.py b/tests/test_ezsp_v9.py index df596923..80a71b01 100644 --- a/tests/test_ezsp_v9.py +++ b/tests/test_ezsp_v9.py @@ -64,7 +64,6 @@ def test_command_frames(ezsp_f): "calculateSmacsHandler": 0x00A0, "calculateSmacsHandler283k1": 0x00EB, "callback": 0x0006, - "changeSourceRouteHandler": 0x00C4, "childJoinHandler": 0x0023, "clearBindingTable": 0x002A, "clearKeyTable": 0x00B1, @@ -172,6 +171,7 @@ def test_command_frames(ezsp_f): "incomingBootloadMessageHandler": 0x0092, "incomingManyToOneRouteRequestHandler": 0x007D, "incomingMessageHandler": 0x0045, + "incomingNetworkStatusHandler": 0x00C4, "incomingRouteErrorHandler": 0x0080, "incomingRouteRecordHandler": 0x0059, "incomingSenderEui64Handler": 0x0062,