new message type: MeshResetMessage
This commit is contained in:
parent
2a097b0a8c
commit
d2b7189eee
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,7 @@ class MeshMessageType(CEnum):
|
|||
MESH_ROUTE_TRACE = "MESH_ROUTE_TRACE", 0x09
|
||||
MESH_ROUTING_FAILED = "MESH_ROUTING_FAILED", 0x0a
|
||||
MESH_SIGNIN_CONFIRM = "MESH_SIGNIN_CONFIRM", 0x0b
|
||||
MESH_RESET = "MESH_RESET", 0x0c
|
||||
|
||||
CONFIG_DUMP = "CONFIG_DUMP", 0x10
|
||||
CONFIG_HARDWARE = "CONFIG_HARDWARE", 0x11
|
||||
|
@ -141,6 +142,11 @@ class MeshSigninConfirmMessage(discriminator_value(msg_type=MeshMessageType.MESH
|
|||
address: MacAddress
|
||||
|
||||
|
||||
class MeshResetMessage(discriminator_value(msg_type=MeshMessageType.MESH_RESET), BaseModel):
|
||||
""" tell nodes with a matching address to leave and re-join the mesh """
|
||||
address: MacAddress
|
||||
|
||||
|
||||
class ConfigDumpMessage(discriminator_value(msg_type=MeshMessageType.CONFIG_DUMP), BaseModel):
|
||||
""" request for the node to dump its config """
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue