mirror of
https://github.com/espressif/openthread.git
synced 2026-09-16 14:10:09 +00:00
[ci] test with time sync and header ie (#3514)
This commit adds the missing test with ie present by enabling TIME_SYNC feature, so that IE code are covered.
This commit is contained in:
@@ -58,6 +58,7 @@ class CommandType(IntEnum):
|
||||
ANNOUNCE = 15
|
||||
DISCOVERY_REQUEST = 16
|
||||
DISCOVERY_RESPONSE = 17
|
||||
TIME_SYNC = 99
|
||||
|
||||
|
||||
class TlvType(IntEnum):
|
||||
@@ -86,6 +87,8 @@ class TlvType(IntEnum):
|
||||
ACTIVE_OPERATIONAL_DATASET = 24
|
||||
PENDING_OPERATIONAL_DATASET = 25
|
||||
THREAD_DISCOVERY = 26
|
||||
TIME_REQUEST = 252
|
||||
TIME_PARAMETER = 253
|
||||
|
||||
|
||||
class SourceAddress(object):
|
||||
@@ -1018,6 +1021,28 @@ class ThreadDiscoveryFactory:
|
||||
def parse(self, data, message_info):
|
||||
return ThreadDiscovery()
|
||||
|
||||
class TimeRequest:
|
||||
# TODO: Not implemented yet
|
||||
|
||||
def __init__(self):
|
||||
print("TimeRequest is not implemented yet.")
|
||||
|
||||
class TimeRequestFactory:
|
||||
|
||||
def parse(self, data, message_info):
|
||||
return TimeRequest()
|
||||
|
||||
class TimeParameter:
|
||||
# TODO: Not implemented yet
|
||||
|
||||
def __init__(self):
|
||||
print("TimeParameter is not implemented yet.")
|
||||
|
||||
|
||||
class TimeParameterFactory:
|
||||
|
||||
def parse(self, data, message_info):
|
||||
return TimeParameter()
|
||||
|
||||
class MleCommand(object):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user