라우터/리더
이 모듈에는 스레드 라우터와 리더를 위한 함수가 포함되어 있습니다.
요약
열거 |
|
---|---|
otCacheEntryState
|
enum 이 열거형은 EID 캐시 항목 상태를 정의합니다. |
otNeighborTableEvent{
|
enum 이 열거형은 otNeighborTableCallback 에 사용되는 상수를 정의하여 인접한 테이블의 변경사항을 나타냅니다. |
Typedef |
|
---|---|
otCacheEntryInfo
|
typedefstruct otCacheEntryInfo
이 구조는 EID 캐시 항목을 나타냅니다. |
otCacheEntryIterator
|
typedefstruct otCacheEntryIterator
이 유형은 EID 캐시 테이블 항목을 반복하는 데 사용되는 반복기를 나타냅니다. |
otCacheEntryState
|
typedefenum otCacheEntryState
이 열거형은 EID 캐시 항목 상태를 정의합니다. |
otChildIp6AddressIterator
|
typedefuint16_t
스레드 하위 항목의 IPv6 주소를 반복하는 데 사용됩니다. |
otNeighborTableCallback)(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntryInfo)
|
typedefvoid(*
이 함수 포인터는 인접한 테이블이 변경되었음을 알리기 위해 호출됩니다. |
함수 |
|
---|---|
otThreadBecomeLeader(otInstance *aInstance)
|
리더가 되어 새로운 파티션을 시작하세요.
|
otThreadBecomeRouter(otInstance *aInstance)
|
라우터가 되어 봅니다.
|
otThreadGetChildInfoById(otInstance *aInstance, uint16_t aChildId, otChildInfo *aChildInfo)
|
연결된 하위 요소의 진단 정보를 하위 ID 또는 RLOC16으로 가져옵니다.
|
otThreadGetChildInfoByIndex(otInstance *aInstance, uint16_t aChildIndex, otChildInfo *aChildInfo)
|
이 함수는 내부 테이블 색인에서 연결된 하위 요소의 진단 정보를 보관합니다.
|
otThreadGetChildNextIp6Address(otInstance *aInstance, uint16_t aChildIndex, otChildIp6AddressIterator *aIterator, otIp6Address *aAddress)
|
이 함수는 지정된 하위 요소의 다음 IPv6 주소 (이터레이터 사용)를 가져옵니다.
|
otThreadGetChildRouterLinks(otInstance *aInstance)
|
uint8_t
REED 역할에 사용된 MLE_CHILD_ROUTER_LINKS 매개변수를 가져옵니다.
|
otThreadGetContextIdReuseDelay(otInstance *aInstance)
|
uint32_t
리더 역할에 사용되는 CONTEXT_ID_REUSE_DELAY 매개변수를 가져옵니다.
|
otThreadGetJoinerUdpPort(otInstance *aInstance)
|
uint16_t
조이너 UDP 포트를 가져옵니다.
|
otThreadGetLocalLeaderWeight(otInstance *aInstance)
|
uint8_t
리더 역할로 작업할 때 사용되는 스레드 리더 가중치를 가져옵니다.
|
otThreadGetMaxAllowedChildren(otInstance *aInstance)
|
uint16_t
현재 허용되는 하위 요소의 최대 개수를 가져옵니다.
|
otThreadGetMaxChildIpAddresses(otInstance *aInstance)
|
uint8_t
각 MTD 하위 요소가 이 기기를 상위 기기로 등록할 수 있는 최대 IP 주소 수를 가져옵니다.
|
otThreadGetMaxRouterId(otInstance *aInstance)
|
uint8_t
이 함수는 허용되는 최대 라우터 ID를 반환합니다.
|
otThreadGetNetworkIdTimeout(otInstance *aInstance)
|
uint8_t
라우터 역할에 사용되는 NETWORK_ID_TIMEOUT 매개변수를 가져옵니다.
|
otThreadGetNextCacheEntry(otInstance *aInstance, otCacheEntryInfo *aEntryInfo, otCacheEntryIterator *aIterator)
|
이 함수는 다음 EID 캐시 항목을 가져옵니다 (iterator 사용).
|
otThreadGetNextHopAndPathCost(otInstance *aInstance, uint16_t aDestRloc16, uint16_t *aNextHopRloc16, uint8_t *aPathCost)
|
void
이 함수는 지정된 RLOC16 대상을 향한 다음 홉 및 경로 비용을 가져옵니다.
|
otThreadGetParentPriority(otInstance *aInstance)
|
int8_t
할당된 상위 우선순위를 가져옵니다.
|
otThreadGetPreferredLeaderPartitionId(otInstance *aInstance)
|
uint32_t
리더 역할로 작업할 때 사용할 기본 스레드 리더 파티션 ID를 가져옵니다.
|
otThreadGetPskc(otInstance *aInstance, otPskc *aPskc)
|
void
스레드 PSKc를 가져옵니다.
|
otThreadGetPskcRef(otInstance *aInstance)
|
저장된 스레드 PSKc의 키 참조를 가져옵니다.
|
otThreadGetRouterDowngradeThreshold(otInstance *aInstance)
|
uint8_t
라우터 역할에 사용되는 ROUTER_DOWNGRADE_THRESHOLD 매개변수를 가져옵니다.
|
otThreadGetRouterIdRange(otInstance *aInstance, uint8_t *aMinRouterId, uint8_t *aMaxRouterId)
|
void
이 함수는 스레드 네트워크 내의 노드에 할당될 수 있는 라우터 ID의 범위를 가져옵니다.
|
otThreadGetRouterIdSequence(otInstance *aInstance)
|
uint8_t
현재 라우터 ID 시퀀스를 가져옵니다.
|
otThreadGetRouterInfo(otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo)
|
이 함수는 지정된 스레드 라우터에 대한 진단 정보를 유지합니다.
|
otThreadGetRouterSelectionJitter(otInstance *aInstance)
|
uint8_t
REED/라우터 역할에 사용된 ROUTER_SELECTION_JITTER 매개변수를 가져옵니다.
|
otThreadGetRouterUpgradeThreshold(otInstance *aInstance)
|
uint8_t
REED 역할에 사용된 ROUTER_UPGRADE_THRESHOLD 매개변수를 가져옵니다.
|
otThreadIsRouterEligible(otInstance *aInstance)
|
bool
이 메서드는 기기가 라우터를 사용할 수 있는지 여부를 나타냅니다.
|
otThreadIsRouterIdAllocated(otInstance *aInstance, uint8_t aRouterId)
|
bool
이 함수는 라우터 ID가 현재 할당되었는지 여부를 나타냅니다.
|
otThreadRegisterNeighborTableCallback(otInstance *aInstance, otNeighborTableCallback aCallback)
|
void
이 함수는 인접 테이블 콜백 함수를 등록합니다.
|
otThreadReleaseRouterId(otInstance *aInstance, uint8_t aRouterId)
|
리더 역할에서 기기가 할당한 라우터 ID를 해제합니다.
|
otThreadSetCcmEnabled(otInstance *aInstance, bool aEnabled)
|
void
이 함수는 기기가 CCM을 사용하여 의뢰되었는지 여부를 설정합니다.
|
otThreadSetChildRouterLinks(otInstance *aInstance, uint8_t aChildRouterLinks)
|
REED 역할에 사용되는 MLE_CHILD_ROUTER_LINKS 매개변수를 설정합니다.
|
otThreadSetContextIdReuseDelay(otInstance *aInstance, uint32_t aDelay)
|
void
리더 역할에 사용되는 CONTEXT_ID_REUSE_DELAY 매개변수를 설정합니다.
|
otThreadSetJoinerUdpPort(otInstance *aInstance, uint16_t aJoinerUdpPort)
|
조이너 UDP 포트를 설정합니다.
|
otThreadSetLocalLeaderWeight(otInstance *aInstance, uint8_t aWeight)
|
void
리더 역할로 작업할 때 사용되는 스레드 리더 가중치를 설정합니다.
|
otThreadSetMaxAllowedChildren(otInstance *aInstance, uint16_t aMaxChildren)
|
현재 허용되는 하위 요소의 최대 개수를 설정합니다.
|
otThreadSetMaxChildIpAddresses(otInstance *aInstance, uint8_t aMaxIpAddresses)
|
각 MTD 하위 요소가 이 기기를 상위 기기로 등록할 수 있는 최대 IP 주소 수를 설정하거나 복원합니다.
|
otThreadSetNetworkIdTimeout(otInstance *aInstance, uint8_t aTimeout)
|
void
리더 역할에 사용되는 NETWORK_ID_TIMEOUT 매개변수를 설정합니다.
|
otThreadSetParentPriority(otInstance *aInstance, int8_t aParentPriority)
|
상위 우선순위를 설정합니다.
|
otThreadSetPreferredLeaderPartitionId(otInstance *aInstance, uint32_t aPartitionId)
|
void
리더 역할로 작업할 때 사용할 기본 스레드 리더 파티션 ID를 설정합니다.
|
otThreadSetPreferredRouterId(otInstance *aInstance, uint8_t aRouterId)
|
기본 라우터 ID를 설정합니다.
|
otThreadSetPskc(otInstance *aInstance, const otPskc *aPskc)
|
스레드 PSKc를 설정합니다.
|
otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef)
|
스레드 PSKc를 설정합니다.
|
otThreadSetRouterDowngradeThreshold(otInstance *aInstance, uint8_t aThreshold)
|
void
리더 역할에 사용되는 ROUTER_DOWNGRADE_THRESHOLD 매개변수를 설정합니다.
|
otThreadSetRouterEligible(otInstance *aInstance, bool aEligible)
|
이 함수는 기기가 라우터를 사용할 수 있는지 여부를 설정합니다.
|
otThreadSetRouterIdRange(otInstance *aInstance, uint8_t aMinRouterId, uint8_t aMaxRouterId)
|
이 함수는 스레드 네트워크 내의 노드에 할당될 수 있는 라우터 ID의 범위를 설정합니다.
|
otThreadSetRouterSelectionJitter(otInstance *aInstance, uint8_t aRouterJitter)
|
void
REED/라우터 역할에 사용되는 ROUTER_SELECTION_JITTER 매개변수를 설정합니다.
|
otThreadSetRouterUpgradeThreshold(otInstance *aInstance, uint8_t aThreshold)
|
void
리더 역할에 사용되는 ROUTER_UPGRADE_THRESHOLD 매개변수를 설정합니다.
|
otThreadSetSteeringData(otInstance *aInstance, const otExtAddress *aExtAddress)
|
void
데이터를 대역 외로 설정합니다.
|
otThreadSetThreadVersionCheckEnabled(otInstance *aInstance, bool aEnabled)
|
void
이 함수는 라우팅 (VR 필드)에 대한 보안 정책 TLV 버전 임계값의 사용 설정 여부를 설정합니다.
|
구조체 |
|
---|---|
otCacheEntryInfo |
이 구조는 EID 캐시 항목을 나타냅니다. |
otCacheEntryIterator |
이 유형은 EID 캐시 테이블 항목을 반복하는 데 사용되는 반복기를 나타냅니다. |
otChild정보 |
이 구조에는 스레드 하위 요소의 진단 정보가 포함됩니다. |
otNeighborTableEntryInfo |
이 유형은 인접 항목 테이블 항목 정보 (하위 라우터 또는 라우터)를 나타내며, 인접 테이블 콜백 |
열거형
otCacheEntryState
otCacheEntryState
이 열거형은 EID 캐시 항목 상태를 정의합니다.
otNeighborTableEvent
otNeighborTableEvent
이 열거형은 otNeighborTableCallback
에 사용되는 상수를 정의하여 인접한 테이블의 변경사항을 나타냅니다.
속성 | |
---|---|
OT_NEIGHBOR_TABLE_EVENT_CHILD_ADDED
|
아이를 추가하는 중입니다. |
OT_NEIGHBOR_TABLE_EVENT_CHILD_MODE_CHANGED
|
기존 자녀의 모드가 변경됩니다. |
OT_NEIGHBOR_TABLE_EVENT_CHILD_REMOVED
|
아동이 삭제되는 중입니다. |
OT_NEIGHBOR_TABLE_EVENT_ROUTER_ADDED
|
라우터를 추가하는 중입니다. |
OT_NEIGHBOR_TABLE_EVENT_ROUTER_REMOVED
|
라우터를 삭제하는 중입니다. |
Typedef
otCacheEntryIterator
struct otCacheEntryIterator otCacheEntryIterator
이 유형은 EID 캐시 테이블 항목을 반복하는 데 사용되는 반복기를 나타냅니다.
반복자를 초기화하고 캐시 테이블의 첫 번째 항목부터 시작하려면 구조의 모든 필드를 0으로 설정하세요 (예: memset
이터레이터를 0으로 설정).
otChildIp6AddressIterator 클래스의 생성자
uint16_t otChildIp6AddressIterator
스레드 하위 항목의 IPv6 주소를 반복하는 데 사용됩니다.
otNeighborTableCallback
void(* otNeighborTableCallback)(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntryInfo)
이 함수 포인터는 인접한 테이블이 변경되었음을 알리기 위해 호출됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
함수
otThreadBringLeader
otError otThreadBecomeLeader( otInstance *aInstance )
리더가 되어 새로운 파티션을 시작하세요.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadreRouter
otError otThreadBecomeRouter( otInstance *aInstance )
라우터가 되어 봅니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetChildInfoById
otError otThreadGetChildInfoById( otInstance *aInstance, uint16_t aChildId, otChildInfo *aChildInfo )
연결된 하위 요소의 진단 정보를 하위 ID 또는 RLOC16으로 가져옵니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otThreadGetChildInfoByIndex
otError otThreadGetChildInfoByIndex( otInstance *aInstance, uint16_t aChildIndex, otChildInfo *aChildInfo )
이 함수는 내부 테이블 색인에서 연결된 하위 요소의 진단 정보를 보관합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otGetMaxAllowedChildren
otThreadGetChildNextIp6Address 클래스의 생성자
otError otThreadGetChildNextIp6Address( otInstance *aInstance, uint16_t aChildIndex, otChildIp6AddressIterator *aIterator, otIp6Address *aAddress )
이 함수는 지정된 하위 요소의 다음 IPv6 주소 (이터레이터 사용)를 가져옵니다.
세부정보 | |||||||||
---|---|---|---|---|---|---|---|---|---|
매개변수 |
|
||||||||
반환 값 |
|
otThreadGetChildInfoByIndex
otThreadGetChildRouterLinks
uint8_t otThreadGetChildRouterLinks( otInstance *aInstance )
REED 역할에 사용된 MLE_CHILD_ROUTER_LINKS 매개변수를 가져옵니다.
이 매개변수는 기기 (FED)가 연결을 설정하려고 시도할 인접 라우터의 최대 개수를 지정합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
MLE_CHILD_ROUTER_LINKS 값입니다.
|
otThreadSetChildRouterLinks
otThreadGetContextIdReuseDelay
uint32_t otThreadGetContextIdReuseDelay( otInstance *aInstance )
리더 역할에 사용되는 CONTEXT_ID_REUSE_DELAY 매개변수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
CONTEXT_ID_REUSE_DELAY 값입니다.
|
otThreadSetContextIdReuseDelay
otThreadGetJoinerUdpPort
uint16_t otThreadGetJoinerUdpPort( otInstance *aInstance )
조이너 UDP 포트를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
연결자 UDP 포트 번호입니다.
|
otThreadSetJoinerUdpPort
otThreadGetLocalLeaderWeight에
uint8_t otThreadGetLocalLeaderWeight( otInstance *aInstance )
리더 역할로 작업할 때 사용되는 스레드 리더 가중치를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
스레드 리더 가중치 값.
|
otThreadSetLeaderWeight
otThreadGetMaxAllowedChildren
uint16_t otThreadGetMaxAllowedChildren( otInstance *aInstance )
현재 허용되는 하위 요소의 최대 개수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
현재 허용되는 하위 요소의 최대 개수입니다.
|
otThreadSetMaxAllowedChildren
otThreadGetMaxChildIpAddress
uint8_t otThreadGetMaxChildIpAddresses( otInstance *aInstance )
각 MTD 하위 요소가 이 기기를 상위 기기로 등록할 수 있는 최대 IP 주소 수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
각 MTD 하위 요소가 이 기기를 상위 기기로 등록할 수 있는 최대 IP 주소 수입니다.
|
otThreadSetMaxChildIpAddress
otThreadGetMaxRouterId
uint8_t otThreadGetMaxRouterId( otInstance *aInstance )
이 함수는 허용되는 최대 라우터 ID를 반환합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
허용되는 최대 라우터 ID입니다.
|
otThreadGetNetworkIdTimeout
uint8_t otThreadGetNetworkIdTimeout( otInstance *aInstance )
라우터 역할에 사용되는 NETWORK_ID_TIMEOUT 매개변수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
NETWORK_ID_TIMEOUT 값입니다.
|
otThreadSetNetworkIdTimeout
otThreadGetNextCacheEntry
otError otThreadGetNextCacheEntry( otInstance *aInstance, otCacheEntryInfo *aEntryInfo, otCacheEntryIterator *aIterator )
이 함수는 다음 EID 캐시 항목을 가져옵니다 (iterator 사용).
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otThreadGetNextHopAndPathCost
void otThreadGetNextHopAndPathCost( otInstance *aInstance, uint16_t aDestRloc16, uint16_t *aNextHopRloc16, uint8_t *aPathCost )
이 함수는 지정된 RLOC16 대상을 향한 다음 홉 및 경로 비용을 가져옵니다.
이 함수는 호출자가 값을 가져오지 않겠다는 것을 나타내는 NULL인 aNextHopRloc16
또는 aPathCost
와 함께 사용할 수 있습니다.
세부정보 | |||||||||
---|---|---|---|---|---|---|---|---|---|
매개변수 |
|
otThreadGetParentPriority
int8_t otThreadGetParentPriority( otInstance *aInstance )
할당된 상위 우선순위를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
할당된 상위 우선순위 값 -2는 할당되지 않음을 의미합니다.
|
otThreadSetParentPriority
otThreadGetPreferredLeaderPartitionId
uint32_t otThreadGetPreferredLeaderPartitionId( otInstance *aInstance )
리더 역할로 작업할 때 사용할 기본 스레드 리더 파티션 ID를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
스레드 리더 파티션 ID 값입니다.
|
otThreadGetPskc
void otThreadGetPskc( otInstance *aInstance, otPskc *aPskc )
스레드 PSKc를 가져옵니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadSetPskc
otThreadGetPskcRef
otPskcRef otThreadGetPskcRef( otInstance *aInstance )
저장된 스레드 PSKc의 키 참조를 가져옵니다.
이 함수를 사용하려면 빌드 시간 기능 OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
을 사용 설정해야 합니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
PSKc에 대한 키 참조
|
otThreadSetPskcRef
otThreadGetRouterDowngradeThreshold
uint8_t otThreadGetRouterDowngradeThreshold( otInstance *aInstance )
라우터 역할에 사용되는 ROUTER_DOWNGRADE_THRESHOLD 매개변수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
ROUTER_DOWNGRADE_THRESHOLD 값
|
otThreadSetRouterDowngradeThreshold
otThreadGetRouterIdRange
void otThreadGetRouterIdRange( otInstance *aInstance, uint8_t *aMinRouterId, uint8_t *aMaxRouterId )
이 함수는 스레드 네트워크 내의 노드에 할당될 수 있는 라우터 ID의 범위를 가져옵니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
otThreadSetRouterIdRange
otThreadGetRouterIdSequence
uint8_t otThreadGetRouterIdSequence( otInstance *aInstance )
현재 라우터 ID 시퀀스를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
라우터 ID 시퀀스입니다.
|
otThreadGetRouterInfo
otError otThreadGetRouterInfo( otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo )
이 함수는 지정된 스레드 라우터에 대한 진단 정보를 유지합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otThreadGetRouterSelectionJitter
uint8_t otThreadGetRouterSelectionJitter( otInstance *aInstance )
REED/라우터 역할에 사용된 ROUTER_SELECTION_JITTER 매개변수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
ROUTER_SELECTION_JITTER 값입니다.
|
otThreadSetRouterSelectionJitter
otThreadGetRouterUpgradeThreshold
uint8_t otThreadGetRouterUpgradeThreshold( otInstance *aInstance )
REED 역할에 사용된 ROUTER_UPGRADE_THRESHOLD 매개변수를 가져옵니다.
세부정보 | |||
---|---|---|---|
매개변수 |
|
||
반환 |
ROUTER_UPGRADE_THRESHOLD 값입니다.
|
otThreadSetRouterUpgradeThreshold
otThreadIsRouter적합
bool otThreadIsRouterEligible( otInstance *aInstance )
이 메서드는 기기가 라우터를 사용할 수 있는지 여부를 나타냅니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadIsRouterIdAlassigned
bool otThreadIsRouterIdAllocated( otInstance *aInstance, uint8_t aRouterId )
이 함수는 라우터 ID가 현재 할당되었는지 여부를 나타냅니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadRegisterNeighborTableCallback 클래스의 생성자
void otThreadRegisterNeighborTableCallback( otInstance *aInstance, otNeighborTableCallback aCallback )
이 함수는 인접 테이블 콜백 함수를 등록합니다.
인접한 테이블이 변경되면 (예: 하위 요소 또는 라우터 인접 항목 항목이 추가/삭제되거나 기존 하위 모드의 변경 시) 제공된 콜백 (NULL이 아닌 경우)이 호출됩니다.
이후 이 메서드를 호출하면 이전 콜백을 덮어씁니다. 이 콜백은 인접 항목/하위 테이블이 업데이트되는 동안 호출되고 항상 otStateChangedCallback
전에 호출됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadReleaseRouterId
otError otThreadReleaseRouterId( otInstance *aInstance, uint8_t aRouterId )
리더 역할에서 기기가 할당한 라우터 ID를 해제합니다.
세부정보 | |||||||||
---|---|---|---|---|---|---|---|---|---|
매개변수 |
|
||||||||
반환 값 |
|
otThreadSetCcmEnabled
void otThreadSetCcmEnabled( otInstance *aInstance, bool aEnabled )
이 함수는 기기가 CCM을 사용하여 의뢰되었는지 여부를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadSetChildRouterLinks
otError otThreadSetChildRouterLinks( otInstance *aInstance, uint8_t aChildRouterLinks )
REED 역할에 사용되는 MLE_CHILD_ROUTER_LINKS 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetChildRouterLinks
otThreadSetContextIdReuseDelay
void otThreadSetContextIdReuseDelay( otInstance *aInstance, uint32_t aDelay )
리더 역할에 사용되는 CONTEXT_ID_REUSE_DELAY 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetContextIdReuseDelay
otThreadSetJoinerUdpPort
otError otThreadSetJoinerUdpPort( otInstance *aInstance, uint16_t aJoinerUdpPort )
조이너 UDP 포트를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetJoinerUdpPort
otThreadSetLocalLeaderWeight에 따른
void otThreadSetLocalLeaderWeight( otInstance *aInstance, uint8_t aWeight )
리더 역할로 작업할 때 사용되는 스레드 리더 가중치를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetLeaderWeight
otThreadSetMaxAllowedChildren
otError otThreadSetMaxAllowedChildren( otInstance *aInstance, uint16_t aMaxChildren )
현재 허용되는 하위 요소의 최대 개수를 설정합니다.
이 매개변수는 스레드 프로토콜 작업이 중지된 경우에만 설정할 수 있습니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otThreadGetMaxAllowedChildren
otThreadSetMaxChildIpAddress
otError otThreadSetMaxChildIpAddresses( otInstance *aInstance, uint8_t aMaxIpAddresses )
각 MTD 하위 요소가 이 기기를 상위 기기로 등록할 수 있는 최대 IP 주소 수를 설정하거나 복원합니다.
0
를 전달하여 설정을 삭제하고 기본값을 복원합니다.
OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
가 사용 설정된 경우 사용할 수 있습니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetMaxChildIpAddress
otThreadSetNetworkIdTimeout
void otThreadSetNetworkIdTimeout( otInstance *aInstance, uint8_t aTimeout )
리더 역할에 사용되는 NETWORK_ID_TIMEOUT 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetNetworkIdTimeout
otThreadSetParentPriority
otError otThreadSetParentPriority( otInstance *aInstance, int8_t aParentPriority )
상위 우선순위를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetParentPriority
otThreadSetPreferredLeaderPartitionId
void otThreadSetPreferredLeaderPartitionId( otInstance *aInstance, uint32_t aPartitionId )
리더 역할로 작업할 때 사용할 기본 스레드 리더 파티션 ID를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadSetPreferredRouterId
otError otThreadSetPreferredRouterId( otInstance *aInstance, uint8_t aRouterId )
기본 라우터 ID를 설정합니다.
라우터/리더가 되면 노드는 이 라우터 ID를 사용하려고 시도합니다. 기본 라우터 ID가 설정되지 않았거나 사용할 수 없는 경우 무작위로 생성된 라우터 ID가 선택됩니다. 이 속성은 기기 역할이 분리되거나 사용 중지된 경우에만 설정할 수 있습니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadSetPskc
otError otThreadSetPskc( otInstance *aInstance, const otPskc *aPskc )
스레드 PSKc를 설정합니다.
이 함수는 스레드 프로토콜이 사용 중지된 경우에만 성공합니다. 이 함수를 성공적으로 호출하면 비휘발성 메모리의 활성 및 대기 중인 작업 데이터 세트도 무효화됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetPskc
otThreadSetPskcRef
otError otThreadSetPskcRef( otInstance *aInstance, otPskcRef aKeyRef )
스레드 PSKc를 설정합니다.
이 함수를 사용하려면 빌드 시간 기능 OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
을 사용 설정해야 합니다.
이 함수는 스레드 프로토콜이 사용 중지된 경우에만 성공합니다. 이 함수를 성공적으로 호출하면 비휘발성 메모리의 활성 및 대기 중인 작업 데이터 세트도 무효화됩니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadGetPskcRef
otThreadSetRouterDowngradeThreshold
void otThreadSetRouterDowngradeThreshold( otInstance *aInstance, uint8_t aThreshold )
리더 역할에 사용되는 ROUTER_DOWNGRADE_THRESHOLD 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetRouterDowngradeThreshold
otThreadSetRouter 자격요건 충족
otError otThreadSetRouterEligible( otInstance *aInstance, bool aEligible )
이 함수는 기기가 라우터를 사용할 수 있는지 여부를 설정합니다.
aEligible
이 false이고 기기가 현재 라우터로 작동 중인 경우 이 호출로 인해 기기가 분리되고 하위 기기로 다시 연결되려고 시도합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
||||
반환 값 |
|
otThreadSetRouterIdRange
otError otThreadSetRouterIdRange( otInstance *aInstance, uint8_t aMinRouterId, uint8_t aMaxRouterId )
이 함수는 스레드 네트워크 내의 노드에 할당될 수 있는 라우터 ID의 범위를 설정합니다.
세부정보 | |||||||
---|---|---|---|---|---|---|---|
매개변수 |
|
||||||
반환 값 |
|
otThreadGetRouterIdRange
otThreadSetRouterSelectionJitter
void otThreadSetRouterSelectionJitter( otInstance *aInstance, uint8_t aRouterJitter )
REED/라우터 역할에 사용되는 ROUTER_SELECTION_JITTER 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetRouterSelectionJitter
otThreadSetRouterUpgradeThreshold
void otThreadSetRouterUpgradeThreshold( otInstance *aInstance, uint8_t aThreshold )
리더 역할에 사용되는 ROUTER_UPGRADE_THRESHOLD 매개변수를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadGetRouterUpgradeThreshold
otThreadSetSteringData
void otThreadSetSteeringData( otInstance *aInstance, const otExtAddress *aExtAddress )
데이터를 대역 외로 설정합니다.
데이터 범위를 대역 외로 조정할 수 있도록 구성 옵션 OPENTHREAD_CONFIG_MLE_STEERING_DATA_SET_OOB_ENABLE
를 설정해야 합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
otThreadSetThreadVersion확인 활성화
void otThreadSetThreadVersionCheckEnabled( otInstance *aInstance, bool aEnabled )
이 함수는 라우팅 (VR 필드)에 대한 보안 정책 TLV 버전 임계값의 사용 설정 여부를 설정합니다.
세부정보 | |||||
---|---|---|---|---|---|
매개변수 |
|
매크로
OT_CHILD_IP6_ADDRESS_ITERATOR_INIT님
OT_CHILD_IP6_ADDRESS_ITERATOR_INIT 0
otChildIP6AddressIterator용 이니셜라이저입니다.
자료
OpenThread API 참조 주제는 GitHub에서 제공되는 소스 코드에서 시작됩니다. 자세한 내용을 알아보거나 문서에 참여하려면 리소스를 참고하세요.