1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
from bellows.ezsp.v7.commands import COMMANDS as COMMANDS_v7
import bellows.types as t
COMMANDS = {
**COMMANDS_v7,
"getNeighborFrameCounter": (
0x003E,
{
"eui64": t.EUI64,
},
{
"status": t.EmberStatus,
"frameCounter": t.uint32_t,
},
),
"incomingNetworkStatusHandler": (
0x00C4,
{},
{
"errorCode": t.EmberStackError,
"target": t.EmberNodeId,
},
),
"sendRawMessageExtended": (
0x0051,
{
"message": t.LVBytes,
"priority": t.uint8_t,
"useCca": t.Bool,
},
{
"status": t.EmberStatus,
},
),
"setMacPollFailureWaitTime": (
0x00F4,
{
"waitBeforeRetryIntervalMs": t.uint32_t,
},
{},
),
"setSourceRouteDiscoveryMode": (
0x005A,
{
"mode": t.uint8_t,
},
{
"remainingTime": t.uint32_t,
},
),
# Changed
"getTransientKeyTableEntry": (
0x006D,
{
"index": t.uint8_t,
},
{
"status": t.EmberStatus,
"transient_key_data": t.EmberTransientKeyDataV8,
},
),
"getTransientLinkKey": (
0x00CE,
{
"eui64": t.EUI64,
},
{
"status": t.EmberStatus,
"transient_key_data": t.EmberTransientKeyDataV8,
},
),
"setSourceRoute": (
0x00AE,
{
"destination": t.EmberNodeId,
"relayList": t.LVList[t.EmberNodeId],
},
{
"status": t.EmberStatus,
},
),
}
del COMMANDS["changeSourceRouteHandler"]
del COMMANDS["getCtune"]
del COMMANDS["setCtune"]
del COMMANDS["setGpioRadioPowerMask"]
del COMMANDS["setMacPollCcaWaitTime"]
|