mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 01:47:47 +00:00
Enabling registration to multiple mcast addresses on the same command line in THCI.
This commit is contained in:
@@ -3337,14 +3337,16 @@ class OpenThreadTHCI(object):
|
||||
return True
|
||||
|
||||
@API
|
||||
def registerMulticast(self, sAddr='ff04::1234:777a:1', timeout=MLR_TIMEOUT_MIN):
|
||||
def registerMulticast(self, listAddr=('ff04::1234:777a:1',), timeout=MLR_TIMEOUT_MIN):
|
||||
"""subscribe to the given ipv6 address (sAddr) in interface and send MLR.req OTA
|
||||
|
||||
Args:
|
||||
sAddr : str : Multicast address to be subscribed and notified OTA.
|
||||
"""
|
||||
self._beforeRegisterMulticast(sAddr, timeout)
|
||||
for each_sAddr in listAddr:
|
||||
self._beforeRegisterMulticast(each_sAddr, timeout)
|
||||
|
||||
sAddr = ' '.join(listAddr)
|
||||
cmd = 'ipmaddr add ' + str(sAddr)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user