mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 14:29:54 +00:00
[low-power] add cli command macsend for certification (#5573)
This command allows an Rx-Off-When-Idle device to send an empty mac data frame or mac datarequest to its parent. This command is only used for certification.
This commit is contained in:
@@ -956,6 +956,14 @@ class NodeImpl:
|
||||
self.send_command('csl timeout %d' % csl_timeout)
|
||||
self._expect('Done')
|
||||
|
||||
def send_mac_emptydata(self):
|
||||
self.send_command('mac send emptydata')
|
||||
self._expect('Done')
|
||||
|
||||
def send_mac_datarequest(self):
|
||||
self.send_command('mac send datarequest')
|
||||
self._expect('Done')
|
||||
|
||||
def set_router_upgrade_threshold(self, threshold):
|
||||
cmd = 'routerupgradethreshold %d' % threshold
|
||||
self.send_command(cmd)
|
||||
|
||||
Reference in New Issue
Block a user