mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 09:27:47 +00:00
[meshcop] use IEEE EUI-64 rather than Joiner ID on user input (#2311)
This commit is contained in:
@@ -201,8 +201,17 @@ class otCli:
|
||||
self.pexpect.expect('Done')
|
||||
return addr64
|
||||
|
||||
def get_hashmacaddr(self):
|
||||
self.send_command('hashmacaddr')
|
||||
def get_eui64(self):
|
||||
self.send_command('eui64')
|
||||
i = self.pexpect.expect('([0-9a-fA-F]{16})')
|
||||
if i == 0:
|
||||
addr64 = self.pexpect.match.groups()[0].decode("utf-8")
|
||||
|
||||
self.pexpect.expect('Done')
|
||||
return addr64
|
||||
|
||||
def get_joiner_id(self):
|
||||
self.send_command('joinerid')
|
||||
i = self.pexpect.expect('([0-9a-fA-F]{16})')
|
||||
if i == 0:
|
||||
addr = self.pexpect.match.groups()[0].decode("utf-8")
|
||||
|
||||
Reference in New Issue
Block a user