mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
[meshcop] support Thread 1.2 Security Policy flags (#6320)
This commit is contained in:
@@ -1927,6 +1927,7 @@ class NodeImpl:
|
||||
master_key=None,
|
||||
mesh_local=None,
|
||||
network_name=None,
|
||||
security_policy=None,
|
||||
binary=None,
|
||||
):
|
||||
cmd = 'dataset mgmtsetcommand active '
|
||||
@@ -1955,6 +1956,10 @@ class NodeImpl:
|
||||
if network_name is not None:
|
||||
cmd += 'networkname %s ' % self._escape_escapable(network_name)
|
||||
|
||||
if security_policy is not None:
|
||||
rotation, flags = security_policy
|
||||
cmd += 'securitypolicy %d %s ' % (rotation, flags)
|
||||
|
||||
if binary is not None:
|
||||
cmd += '-x %s ' % binary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user