Skip to content

Commit 2f8501d

Browse files
committed
Document all of the command subsystems, including ZNP.BasicReq
1 parent c63e2c6 commit 2f8501d

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

zigpy_znp/commands/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from .util import Util
99
from .zdo import ZDO
1010
from .zgp import ZGP
11+
from .znp import ZNP
1112

1213
ALL_COMMANDS = [
1314
RPCError,
@@ -20,6 +21,7 @@
2021
Util,
2122
ZDO,
2223
ZGP,
24+
ZNP,
2325
]
2426

2527
COMMANDS_BY_ID = {}

zigpy_znp/commands/znp.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import zigpy_znp.types as t
2+
3+
4+
class ZNP(t.CommandsBase, subsystem=t.Subsystem.ZNP):
5+
BasicReq = t.CommandDef(
6+
t.CommandType.SREQ, 0x00, req_schema=t.Schema(), rsp_schema=t.Schema(),
7+
)

zigpy_znp/types/commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ class Subsystem(t.enum_uint8):
5959
UTIL = 0x07
6060
DEBUG = 0x08
6161
APP = 0x09
62-
RESERVED_10 = 0x0A
63-
RESERVED_11 = 0x0B
62+
OTA = 0x0A
63+
ZNP = 0x0B
6464
RESERVED_12 = 0x0C
65-
RESERVED_13 = 0x0D
65+
UBL_FUNC = 0x0D
6666
RESERVED_14 = 0x0E
6767
APPConfig = 0x0F
6868
RESERVED_16 = 0x10
69-
RESERVED_17 = 0x11
69+
PROTOBUF = 0x11
7070
RESERVED_18 = 0x12
7171
RESERVED_19 = 0x13
7272
RESERVED_20 = 0x14

0 commit comments

Comments
 (0)