mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 03:37:46 +00:00
[meshcop] use IEEE EUI-64 rather than Joiner ID on user input (#2311)
This commit is contained in:
@@ -100,8 +100,11 @@ class otApi:
|
||||
def get_addr64(self):
|
||||
return self.Api.otNodeGetAddr64(self.otNode).decode('utf-8')
|
||||
|
||||
def get_hashmacaddr(self):
|
||||
return self.Api.otNodeGetHashMacAddress(self.otNode).decode('utf-8')
|
||||
def get_eui64(self):
|
||||
return self.Api.otNodeGetEui64(self.otNode).decode('utf-8')
|
||||
|
||||
def get_joiner_id(self):
|
||||
return self.Api.otNodeGetJoinerId(self.otNode).decode('utf-8')
|
||||
|
||||
def get_channel(self):
|
||||
return self.Api.otNodeGetChannel(self.otNode)
|
||||
@@ -420,10 +423,13 @@ class otApi:
|
||||
|
||||
self.Api.otNodeGetAddr64.argtypes = [ctypes.c_void_p]
|
||||
self.Api.otNodeGetAddr64.restype = ctypes.c_char_p
|
||||
|
||||
self.Api.otNodeGetHashMacAddress.argtypes = [ctypes.c_void_p]
|
||||
self.Api.otNodeGetHashMacAddress.restype = ctypes.c_char_p
|
||||
|
||||
self.Api.otNodeGetEui64.argtypes = [ctypes.c_void_p]
|
||||
self.Api.otNodeGetEui64.restype = ctypes.c_char_p
|
||||
|
||||
self.Api.otNodeGetJoinerId.argtypes = [ctypes.c_void_p]
|
||||
self.Api.otNodeGetJoinerId.restype = ctypes.c_char_p
|
||||
|
||||
self.Api.otNodeSetChannel.argtypes = [ctypes.c_void_p,
|
||||
ctypes.c_ubyte]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user