General
This module includes functions for all Thread roles.
Summary
The Network Data Publisher provides mechanisms to limit the number of similar Service and/or Prefix (on-mesh prefix or external route) entries in the Thread Network Data by monitoring the Network Data and managing if or when to add or remove entries.
All the functions in this module require OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE
to be enabled.
Enumerations |
|
---|---|
otDeviceRole{
|
enum Represents a Thread device role. |
otNetDataPublisherEvent{
|
enum Represents the events reported from the Publisher callbacks. |
otRoutePreference{
|
enum |
Typedefs |
|
---|---|
otBorderRouterConfig
|
typedefstruct otBorderRouterConfig
Represents a Border Router configuration. |
otDetachGracefullyCallback)(void *aContext)
|
typedefvoid(*
This callback informs the application that the detaching process has finished. |
otExternalRouteConfig
|
typedefstruct otExternalRouteConfig
Represents an External Route configuration. |
otIpCounters
|
typedefstruct otIpCounters
Represents the IP level counters. |
otLeaderData
|
typedefstruct otLeaderData
Represents the Thread Leader Data. |
otLinkModeConfig
|
typedefstruct otLinkModeConfig
Represents an MLE Link Mode configuration. |
otLowpanContextInfo
|
typedefstruct otLowpanContextInfo
Represents 6LoWPAN Context ID information associated with a prefix in Network Data. |
otMleCounters
|
typedefstruct otMleCounters
Represents the Thread MLE counters. |
otNeighborInfoIterator
|
typedefint16_t
Used to iterate through neighbor table. |
otNetDataDnsSrpServicePublisherCallback)(otNetDataPublisherEvent aEvent, void *aContext)
|
typedefvoid(*
Pointer type defines the callback used to notify when a "DNS/SRP Service" entry is added to or removed from the Thread Network Data. |
otNetDataPrefixPublisherCallback)(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext)
|
typedefvoid(*
Pointer type defines the callback used to notify when a prefix (on-mesh or external route) entry is added to or removed from the Thread Network Data. |
otNetDataPublisherEvent
|
typedef Represents the events reported from the Publisher callbacks. |
otNetworkDataIterator
|
typedefuint32_t
Used to iterate through Network Data information. |
otNetworkDiagChildEntry
|
typedefstruct otNetworkDiagChildEntry
Represents a Network Diagnostic Child Table Entry. |
otNetworkDiagConnectivity
|
typedefstruct otNetworkDiagConnectivity
Represents a Network Diagnostic Connectivity value. |
otNetworkDiagIterator
|
typedefuint16_t
Used to iterate through Network Diagnostic TLV. |
otNetworkDiagMacCounters
|
typedefstruct otNetworkDiagMacCounters
Represents a Network Diagnostic Mac Counters value. |
otNetworkDiagMleCounters
|
typedefstruct otNetworkDiagMleCounters
Represents a Network Diagnostics MLE Counters value. |
otNetworkDiagRoute
|
typedefstruct otNetworkDiagRoute
Represents a Network Diagnostic Route64 TLV value. |
otNetworkDiagRouteData
|
typedefstruct otNetworkDiagRouteData
Represents a Network Diagnostic Route data. |
otNetworkDiagTlv
|
typedefstruct otNetworkDiagTlv
Represents a Network Diagnostic TLV. |
otReceiveDiagnosticGetCallback)(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext)
|
typedefvoid(*
Pointer is called when Network Diagnostic Get response is received. |
otRoutePreference
|
typedefenum otRoutePreference
|
otServerConfig
|
typedefstruct otServerConfig
Represents a Server configuration. |
otServiceConfig
|
typedefstruct otServiceConfig
Represents a Service configuration. |
otThreadAnycastLocatorCallback)(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16)
|
typedefvoid(*
Pointer type defines the callback to notify the outcome of a otThreadLocateAnycastDestination() request. |
otThreadDiscoveryRequestCallback)(const otThreadDiscoveryRequestInfo *aInfo, void *aContext)
|
typedefvoid(*
Pointer is called every time an MLE Discovery Request message is received. |
otThreadDiscoveryRequestInfo
|
typedefstruct otThreadDiscoveryRequestInfo
Represents the Thread Discovery Request data. |
otThreadParentResponseCallback)(otThreadParentResponseInfo *aInfo, void *aContext)
|
typedefvoid(*
Pointer is called every time an MLE Parent Response message is received. |
otThreadParentResponseInfo
|
typedefstruct otThreadParentResponseInfo
Represents the MLE Parent Response data. |
otWakeupCallback)(otError aError, void *aContext)
|
typedefvoid(*
Informs the application about the result of waking a Wake-up End Device. |
Functions |
|
---|---|
otConvertDurationInSecondsToString(uint32_t aDuration, char *aBuffer, uint16_t aSize)
|
void
Converts an
uint32_t duration (in seconds) to a human-readable string. |
otNetDataContainsOmrPrefix(otInstance *aInstance, const otIp6Prefix *aPrefix)
|
bool
Check whether a given Prefix can act as a valid OMR prefix and also the Leader's Network Data contains this prefix.
|
otNetDataGet(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength)
|
Provide full or stable copy of the Partition's Thread Network Data.
|
otNetDataGetCommissioningDataset(otInstance *aInstance, otCommissioningDataset *aDataset)
|
void
Gets the Commissioning Dataset from the partition's Network Data.
|
otNetDataGetLength(otInstance *aInstance)
|
uint8_t
Get the current length (number of bytes) of Partition's Thread Network Data.
|
otNetDataGetMaxLength(otInstance *aInstance)
|
uint8_t
Get the maximum observed length of the Thread Network Data since OT stack initialization or since the last call to
otNetDataResetMaxLength() . |
otNetDataGetNextLowpanContextInfo(otInstance *aInstance, otNetworkDataIterator *aIterator, otLowpanContextInfo *aContextInfo)
|
Get the next 6LoWPAN Context ID info in the partition's Network Data.
|
otNetDataGetNextOnMeshPrefix(otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig)
|
Get the next On Mesh Prefix in the partition's Network Data.
|
otNetDataGetNextRoute(otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig)
|
Get the next external route in the partition's Network Data.
|
otNetDataGetNextService(otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig)
|
Get the next service in the partition's Network Data.
|
otNetDataGetStableVersion(otInstance *aInstance)
|
uint8_t
Get the Stable Network Data Version.
|
otNetDataGetVersion(otInstance *aInstance)
|
uint8_t
Get the Network Data Version.
|
otNetDataIsDnsSrpServiceAdded(otInstance *aInstance)
|
bool
Indicates whether or not currently the "DNS/SRP Service" entry is added to the Thread Network Data.
|
otNetDataIsPrefixAdded(otInstance *aInstance, const otIp6Prefix *aPrefix)
|
bool
Indicates whether or not currently a published prefix entry (on-mesh or external route) is added to the Thread Network Data.
|
otNetDataPublishDnsSrpServiceAnycast(otInstance *aInstance, uint8_t aSequenceNUmber)
|
void
Requests "DNS/SRP Service Anycast Address" to be published in the Thread Network Data.
|
otNetDataPublishDnsSrpServiceUnicast(otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort)
|
void
Requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
|
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid(otInstance *aInstance, uint16_t aPort)
|
void
Requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
|
otNetDataPublishExternalRoute(otInstance *aInstance, const otExternalRouteConfig *aConfig)
|
Requests an external route prefix to be published in the Thread Network Data.
|
otNetDataPublishOnMeshPrefix(otInstance *aInstance, const otBorderRouterConfig *aConfig)
|
Requests an on-mesh prefix to be published in the Thread Network Data.
|
otNetDataReplacePublishedExternalRoute(otInstance *aInstance, const otIp6Prefix *aPrefix, const otExternalRouteConfig *aConfig)
|
Replaces a previously published external route in the Thread Network Data.
|
otNetDataResetMaxLength(otInstance *aInstance)
|
void
Reset the tracked maximum length of the Thread Network Data.
|
otNetDataSetDnsSrpServicePublisherCallback(otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext)
|
void
Sets a callback for notifying when a published "DNS/SRP Service" is actually added to or removed from the Thread Network Data.
|
otNetDataSetPrefixPublisherCallback(otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext)
|
void
Sets a callback for notifying when a published prefix entry is actually added to or removed from the Thread Network Data.
|
otNetDataSteeringDataCheckJoiner(otInstance *aInstance, const otExtAddress *aEui64)
|
Check if the steering data includes a Joiner.
|
otNetDataSteeringDataCheckJoinerWithDiscerner(otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner)
|
Check if the steering data includes a Joiner with a given discerner value.
|
otNetDataUnpublishDnsSrpService(otInstance *aInstance)
|
void
Unpublishes any previously added DNS/SRP (Anycast or Unicast) Service entry from the Thread Network Data.
|
otNetDataUnpublishPrefix(otInstance *aInstance, const otIp6Prefix *aPrefix)
|
Unpublishes a previously published On-Mesh or External Route Prefix.
|
otThreadBecomeChild(otInstance *aInstance)
|
Attempt to reattach as a child.
|
otThreadBecomeDetached(otInstance *aInstance)
|
Detach from the Thread network.
|
otThreadDetachGracefully(otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext)
|
Notifies other nodes in the network (if any) and then stops Thread protocol operation.
|
otThreadDeviceRoleToString(otDeviceRole aRole)
|
const char *
Convert the device role to human-readable string.
|
otThreadDiscover(otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext)
|
Starts a Thread Discovery scan.
|
otThreadGetChildTimeout(otInstance *aInstance)
|
uint32_t
Gets the Thread Child Timeout (in seconds) used when operating in the Child role.
|
otThreadGetDeviceRole(otInstance *aInstance)
|
Get the device role.
|
otThreadGetDomainName(otInstance *aInstance)
|
const char *
Gets the Thread Domain Name.
|
otThreadGetExtendedPanId(otInstance *aInstance)
|
const otExtendedPanId *
Gets the IEEE 802.15.4 Extended PAN ID.
|
otThreadGetFixedDuaInterfaceIdentifier(otInstance *aInstance)
|
const otIp6InterfaceIdentifier *
Gets the Interface Identifier manually specified for the Thread Domain Unicast Address.
|
otThreadGetIp6Counters(otInstance *aInstance)
|
const otIpCounters *
Gets the IPv6 counters.
|
otThreadGetKeySequenceCounter(otInstance *aInstance)
|
uint32_t
Gets the thrKeySequenceCounter.
|
otThreadGetKeySwitchGuardTime(otInstance *aInstance)
|
uint16_t
Gets the thrKeySwitchGuardTime (in hours).
|
otThreadGetLeaderData(otInstance *aInstance, otLeaderData *aLeaderData)
|
Get the Thread Leader Data.
|
otThreadGetLeaderRloc(otInstance *aInstance, otIp6Address *aLeaderRloc)
|
Returns a pointer to the Leader's RLOC.
|
otThreadGetLeaderRouterId(otInstance *aInstance)
|
uint8_t
Get the Leader's Router ID.
|
otThreadGetLeaderWeight(otInstance *aInstance)
|
uint8_t
Get the Leader's Weight.
|
otThreadGetLinkLocalAllThreadNodesMulticastAddress(otInstance *aInstance)
|
const otIp6Address *
Gets the Thread Link-Local All Thread Nodes multicast address.
|
otThreadGetLinkLocalIp6Address(otInstance *aInstance)
|
const otIp6Address *
Gets the Thread link-local IPv6 address.
|
otThreadGetLinkMode(otInstance *aInstance)
|
Get the MLE Link Mode configuration.
|
otThreadGetMaxTimeInQueue(otInstance *aInstance)
|
uint32_t
Gets the maximum time-in-queue for messages in the TX queue.
|
otThreadGetMeshLocalEid(otInstance *aInstance)
|
const otIp6Address *
Gets the Mesh Local EID address.
|
otThreadGetMeshLocalPrefix(otInstance *aInstance)
|
const otMeshLocalPrefix *
Returns a pointer to the Mesh Local Prefix.
|
otThreadGetMleCounters(otInstance *aInstance)
|
const otMleCounters *
Gets the Thread MLE counters.
|
otThreadGetNetworkKey(otInstance *aInstance, otNetworkKey *aNetworkKey)
|
void
Get the Thread Network Key.
|
otThreadGetNetworkKeyRef(otInstance *aInstance)
|
Get the
otNetworkKeyRef for Thread Network Key. |
otThreadGetNetworkName(otInstance *aInstance)
|
const char *
Get the Thread Network Name.
|
otThreadGetNextDiagnosticTlv(const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv)
|
Gets the next Network Diagnostic TLV in the message.
|
otThreadGetNextNeighborInfo(otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo)
|
Gets the next neighbor information.
|
otThreadGetParentAverageRssi(otInstance *aInstance, int8_t *aParentRssi)
|
The function retrieves the average RSSI for the Thread Parent.
|
otThreadGetParentInfo(otInstance *aInstance, otRouterInfo *aParentInfo)
|
The function retrieves diagnostic information for a Thread Router as parent.
|
otThreadGetParentLastRssi(otInstance *aInstance, int8_t *aLastRssi)
|
The function retrieves the RSSI of the last packet from the Thread Parent.
|
otThreadGetPartitionId(otInstance *aInstance)
|
uint32_t
Get the Partition ID.
|
otThreadGetRealmLocalAllThreadNodesMulticastAddress(otInstance *aInstance)
|
const otIp6Address *
Gets the Thread Realm-Local All Thread Nodes multicast address.
|
otThreadGetRloc(otInstance *aInstance)
|
const otIp6Address *
Gets the Thread Routing Locator (RLOC) address.
|
otThreadGetRloc16(otInstance *aInstance)
|
uint16_t
Get the RLOC16.
|
otThreadGetServiceAloc(otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc)
|
Retrieves the Service ALOC for given Service ID.
|
otThreadGetStoreFrameCounterAhead(otInstance *aInstance)
|
uint32_t
Gets the store frame counter ahead.
|
otThreadGetTimeInQueueHistogram(otInstance *aInstance, uint16_t *aNumBins, uint32_t *aBinInterval)
|
const uint32_t *
Gets the time-in-queue histogram for messages in the TX queue.
|
otThreadGetVendorAppUrl(otInstance *aInstance)
|
const char *
Get the vendor app URL string.
|
otThreadGetVendorModel(otInstance *aInstance)
|
const char *
Get the vendor model string.
|
otThreadGetVendorName(otInstance *aInstance)
|
const char *
Get the vendor name string.
|
otThreadGetVendorSwVersion(otInstance *aInstance)
|
const char *
Get the vendor software version string.
|
otThreadGetVersion(void)
|
uint16_t
Gets the Thread protocol version.
|
otThreadIsAnycastLocateInProgress(otInstance *aInstance)
|
bool
Indicates whether an anycast locate request is currently in progress.
|
otThreadIsDiscoverInProgress(otInstance *aInstance)
|
bool
Determines if an MLE Thread Discovery is currently in progress.
|
otThreadIsSingleton(otInstance *aInstance)
|
bool
Indicates whether a node is the only router on the network.
|
otThreadLocateAnycastDestination(otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext)
|
Requests the closest destination of a given anycast address to be located.
|
otThreadRegisterParentResponseCallback(otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext)
|
void
Registers a callback to receive MLE Parent Response data.
|
otThreadResetIp6Counters(otInstance *aInstance)
|
void
Resets the IPv6 counters.
|
otThreadResetMleCounters(otInstance *aInstance)
|
void
Resets the Thread MLE counters.
|
otThreadResetTimeInQueueStat(otInstance *aInstance)
|
void
Resets the TX queue time-in-queue statistics.
|
otThreadSearchForBetterParent(otInstance *aInstance)
|
Starts the process for child to search for a better parent while staying attached to its current parent.
|
otThreadSendAddressNotification(otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid)
|
void
Sends a Proactive Address Notification (ADDR_NTF.ntf) message.
|
otThreadSendDiagnosticGet(otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext)
|
Send a Network Diagnostic Get request.
|
otThreadSendDiagnosticReset(otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount)
|
Send a Network Diagnostic Reset request.
|
otThreadSendProactiveBackboneNotification(otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction)
|
Sends a Proactive Backbone Notification (PRO_BB.ntf) message on the Backbone link.
|
otThreadSetChildTimeout(otInstance *aInstance, uint32_t aTimeout)
|
void
Sets the Thread Child Timeout (in seconds) used when operating in the Child role.
|
otThreadSetDiscoveryRequestCallback(otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext)
|
void
Sets a callback to receive MLE Discovery Request data.
|
otThreadSetDomainName(otInstance *aInstance, const char *aDomainName)
|
Sets the Thread Domain Name.
|
otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
|
Starts Thread protocol operation.
|
otThreadSetExtendedPanId(otInstance *aInstance, const otExtendedPanId *aExtendedPanId)
|
Sets the IEEE 802.15.4 Extended PAN ID.
|
otThreadSetFixedDuaInterfaceIdentifier(otInstance *aInstance, const otIp6InterfaceIdentifier *aIid)
|
Sets or clears the Interface Identifier manually specified for the Thread Domain Unicast Address.
|
otThreadSetJoinerAdvertisement(otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength)
|
Sets the Thread Joiner Advertisement when discovering Thread network.
|
otThreadSetKeySequenceCounter(otInstance *aInstance, uint32_t aKeySequenceCounter)
|
void
Sets the thrKeySequenceCounter.
|
otThreadSetKeySwitchGuardTime(otInstance *aInstance, uint16_t aKeySwitchGuardTime)
|
void
Sets the thrKeySwitchGuardTime (in hours).
|
otThreadSetLinkMode(otInstance *aInstance, otLinkModeConfig aConfig)
|
Set the MLE Link Mode configuration.
|
otThreadSetMeshLocalPrefix(otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix)
|
Sets the Mesh Local Prefix.
|
otThreadSetNetworkKey(otInstance *aInstance, const otNetworkKey *aKey)
|
Set the Thread Network Key.
|
otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef)
|
Set the Thread Network Key as a
otNetworkKeyRef . |
otThreadSetNetworkName(otInstance *aInstance, const char *aNetworkName)
|
Set the Thread Network Name.
|
otThreadSetStoreFrameCounterAhead(otInstance *aInstance, uint32_t aStoreFrameCounterAhead)
|
void
Sets the store frame counter ahead.
|
otThreadSetVendorAppUrl(otInstance *aInstance, const char *aVendorAppUrl)
|
Set the vendor app URL string.
|
otThreadSetVendorModel(otInstance *aInstance, const char *aVendorModel)
|
Set the vendor model string.
|
otThreadSetVendorName(otInstance *aInstance, const char *aVendorName)
|
Set the vendor name string.
|
otThreadSetVendorSwVersion(otInstance *aInstance, const char *aVendorSwVersion)
|
Set the vendor software version string.
|
otThreadWakeup(otInstance *aInstance, const otExtAddress *aWedAddress, uint16_t aWakeupIntervalUs, uint16_t aWakeupDurationMs, otWakeupCallback aCallback, void *aCallbackContext)
|
Attempts to wake a Wake-up End Device.
|
Structs |
|
---|---|
otBorderRouterConfig |
Represents a Border Router configuration. |
otExternalRouteConfig |
Represents an External Route configuration. |
otIpCounters |
Represents the IP level counters. |
otLeaderData |
Represents the Thread Leader Data. |
otLinkModeConfig |
Represents an MLE Link Mode configuration. |
otLowpanContextInfo |
Represents 6LoWPAN Context ID information associated with a prefix in Network Data. |
otMleCounters |
Represents the Thread MLE counters. |
otNeighborInfo |
Holds diagnostic information for a neighboring Thread node. |
otNetworkDiagChildEntry |
Represents a Network Diagnostic Child Table Entry. |
otNetworkDiagConnectivity |
Represents a Network Diagnostic Connectivity value. |
otNetworkDiagMacCounters |
Represents a Network Diagnostic Mac Counters value. |
otNetworkDiagMleCounters |
Represents a Network Diagnostics MLE Counters value. |
otNetworkDiagRoute |
Represents a Network Diagnostic Route64 TLV value. |
otNetworkDiagRouteData |
Represents a Network Diagnostic Route data. |
otNetworkDiagTlv |
Represents a Network Diagnostic TLV. |
otRouterInfo |
Holds diagnostic information for a Thread Router. |
otServerConfig |
Represents a Server configuration. |
otServiceConfig |
Represents a Service configuration. |
otThreadDiscoveryRequestInfo |
Represents the Thread Discovery Request data. |
otThreadParentResponseInfo |
Represents the MLE Parent Response data. |
Enumerations
otDeviceRole
otDeviceRole
Represents a Thread device role.
otNetDataPublisherEvent
otNetDataPublisherEvent
otRoutePreference
otRoutePreference
Defines valid values for mPreference
in otExternalRouteConfig
and otBorderRouterConfig
.
Properties | |
---|---|
OT_ROUTE_PREFERENCE_HIGH
|
High route preference. |
OT_ROUTE_PREFERENCE_LOW
|
Low route preference. |
OT_ROUTE_PREFERENCE_MED
|
Medium route preference. |
Typedefs
otBorderRouterConfig
struct otBorderRouterConfig otBorderRouterConfig
Represents a Border Router configuration.
otDetachGracefullyCallback
void(* otDetachGracefullyCallback)(void *aContext)
This callback informs the application that the detaching process has finished.
Details | |||
---|---|---|---|
Parameters |
|
otExternalRouteConfig
struct otExternalRouteConfig otExternalRouteConfig
Represents an External Route configuration.
otLinkModeConfig
struct otLinkModeConfig otLinkModeConfig
Represents an MLE Link Mode configuration.
otLowpanContextInfo
struct otLowpanContextInfo otLowpanContextInfo
Represents 6LoWPAN Context ID information associated with a prefix in Network Data.
otNeighborInfoIterator
int16_t otNeighborInfoIterator
Used to iterate through neighbor table.
otNetDataDnsSrpServicePublisherCallback
void(* otNetDataDnsSrpServicePublisherCallback)(otNetDataPublisherEvent aEvent, void *aContext)
Pointer type defines the callback used to notify when a "DNS/SRP Service" entry is added to or removed from the Thread Network Data.
On remove the callback is invoked independent of whether the entry is removed by Publisher
(e.g., when there are too many similar entries already present in the Network Data) or through an explicit call to unpublish the entry (i.e., a call to otNetDataUnpublishDnsSrpService()
).
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otNetDataPrefixPublisherCallback
void(* otNetDataPrefixPublisherCallback)(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext)
Pointer type defines the callback used to notify when a prefix (on-mesh or external route) entry is added to or removed from the Thread Network Data.
On remove the callback is invoked independent of whether the entry is removed by Publisher
(e.g., when there are too many similar entries already present in the Network Data) or through an explicit call to unpublish the entry.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otNetDataPublisherEvent
enum otNetDataPublisherEvent otNetDataPublisherEvent
Represents the events reported from the Publisher callbacks.
otNetworkDataIterator
uint32_t otNetworkDataIterator
Used to iterate through Network Data information.
otNetworkDiagChildEntry
struct otNetworkDiagChildEntry otNetworkDiagChildEntry
Represents a Network Diagnostic Child Table Entry.
otNetworkDiagConnectivity
struct otNetworkDiagConnectivity otNetworkDiagConnectivity
Represents a Network Diagnostic Connectivity value.
otNetworkDiagIterator
uint16_t otNetworkDiagIterator
Used to iterate through Network Diagnostic TLV.
otNetworkDiagMacCounters
struct otNetworkDiagMacCounters otNetworkDiagMacCounters
Represents a Network Diagnostic Mac Counters value.
See RFC 2863 for definitions of member fields.
otNetworkDiagMleCounters
struct otNetworkDiagMleCounters otNetworkDiagMleCounters
Represents a Network Diagnostics MLE Counters value.
otNetworkDiagRoute
struct otNetworkDiagRoute otNetworkDiagRoute
Represents a Network Diagnostic Route64 TLV value.
otNetworkDiagRouteData
struct otNetworkDiagRouteData otNetworkDiagRouteData
Represents a Network Diagnostic Route data.
otReceiveDiagnosticGetCallback
void(* otReceiveDiagnosticGetCallback)(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext)
Pointer is called when Network Diagnostic Get response is received.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
otRoutePreference
enum otRoutePreference otRoutePreference
Defines valid values for mPreference
in otExternalRouteConfig
and otBorderRouterConfig
.
otThreadAnycastLocatorCallback
void(* otThreadAnycastLocatorCallback)(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16)
Pointer type defines the callback to notify the outcome of a otThreadLocateAnycastDestination()
request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
otThreadDiscoveryRequestCallback
void(* otThreadDiscoveryRequestCallback)(const otThreadDiscoveryRequestInfo *aInfo, void *aContext)
Pointer is called every time an MLE Discovery Request message is received.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadDiscoveryRequestInfo
struct otThreadDiscoveryRequestInfo otThreadDiscoveryRequestInfo
Represents the Thread Discovery Request data.
otThreadParentResponseCallback
void(* otThreadParentResponseCallback)(otThreadParentResponseInfo *aInfo, void *aContext)
Pointer is called every time an MLE Parent Response message is received.
This is used in otThreadRegisterParentResponseCallback()
.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadParentResponseInfo
struct otThreadParentResponseInfo otThreadParentResponseInfo
Represents the MLE Parent Response data.
otWakeupCallback
void(* otWakeupCallback)(otError aError, void *aContext)
Informs the application about the result of waking a Wake-up End Device.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Functions
otConvertDurationInSecondsToString
void otConvertDurationInSecondsToString( uint32_t aDuration, char *aBuffer, uint16_t aSize )
Converts an uint32_t
duration (in seconds) to a human-readable string.
Requires OPENTHREAD_CONFIG_UPTIME_ENABLE
to be enabled.
The string follows the format "
If the resulting string does not fit in aBuffer
(within its aSize
characters), the string will be truncated but the outputted string is always null-terminated.
Is intended for use with mAge
or mConnectionTime
in otNeighborInfo
or otChildInfo
structures.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otNetDataContainsOmrPrefix
bool otNetDataContainsOmrPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
Check whether a given Prefix can act as a valid OMR prefix and also the Leader's Network Data contains this prefix.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
Whether
aPrefix is a valid OMR prefix and Leader's Network Data contains the OMR prefix aPrefix . |
otNetDataGet
otError otNetDataGet( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
Provide full or stable copy of the Partition's Thread Network Data.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otNetDataGetCommissioningDataset
void otNetDataGetCommissioningDataset( otInstance *aInstance, otCommissioningDataset *aDataset )
Gets the Commissioning Dataset from the partition's Network Data.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otNetDataGetLength
uint8_t otNetDataGetLength( otInstance *aInstance )
Get the current length (number of bytes) of Partition's Thread Network Data.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The length of the Network Data.
|
otNetDataGetMaxLength
uint8_t otNetDataGetMaxLength( otInstance *aInstance )
Get the maximum observed length of the Thread Network Data since OT stack initialization or since the last call to otNetDataResetMaxLength()
.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The maximum length of the Network Data (high water mark for Network Data length).
|
otNetDataGetNextLowpanContextInfo
otError otNetDataGetNextLowpanContextInfo( otInstance *aInstance, otNetworkDataIterator *aIterator, otLowpanContextInfo *aContextInfo )
Get the next 6LoWPAN Context ID info in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataGetNextOnMeshPrefix
otError otNetDataGetNextOnMeshPrefix( otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig )
Get the next On Mesh Prefix in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataGetNextRoute
otError otNetDataGetNextRoute( otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig )
Get the next external route in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataGetNextService
otError otNetDataGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
Get the next service in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataGetStableVersion
uint8_t otNetDataGetStableVersion( otInstance *aInstance )
Get the Stable Network Data Version.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Stable Network Data Version.
|
otNetDataGetVersion
uint8_t otNetDataGetVersion( otInstance *aInstance )
Get the Network Data Version.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Network Data Version.
|
otNetDataIsDnsSrpServiceAdded
bool otNetDataIsDnsSrpServiceAdded( otInstance *aInstance )
Indicates whether or not currently the "DNS/SRP Service" entry is added to the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otNetDataIsPrefixAdded
bool otNetDataIsPrefixAdded( otInstance *aInstance, const otIp6Prefix *aPrefix )
Indicates whether or not currently a published prefix entry (on-mesh or external route) is added to the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otNetDataPublishDnsSrpServiceAnycast
void otNetDataPublishDnsSrpServiceAnycast( otInstance *aInstance, uint8_t aSequenceNUmber )
Requests "DNS/SRP Service Anycast Address" to be published in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otNetDataPublishDnsSrpServiceUnicast
void otNetDataPublishDnsSrpServiceUnicast( otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort )
Requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
Publishes the "DNS/SRP Service Unicast Address" by including the address and port info in the Service TLV data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid
void otNetDataPublishDnsSrpServiceUnicastMeshLocalEid( otInstance *aInstance, uint16_t aPort )
Requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
Unlike otNetDataPublishDnsSrpServiceUnicast()
which requires the published address to be given and includes the info in the Service TLV data, this function uses the device's mesh-local EID and includes the info in the Server TLV data.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otNetDataPublishExternalRoute
otError otNetDataPublishExternalRoute( otInstance *aInstance, const otExternalRouteConfig *aConfig )
Requests an external route prefix to be published in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Only stable entries can be published (i.e.,aConfig.mStable
MUST be TRUE).
A subsequent call to this method will replace a previous request for the same prefix. In particular, if the new call only changes the flags (e.g., preference level) and the prefix is already added in the Network Data, the change to flags is immediately reflected in the Network Data. This ensures that existing entries in the Network Data are not abruptly removed. Note that a change in the preference level can potentially later cause the entry to be removed from the Network Data after determining there are other nodes that are publishing the same prefix with the same or higher preference.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataPublishOnMeshPrefix
otError otNetDataPublishOnMeshPrefix( otInstance *aInstance, const otBorderRouterConfig *aConfig )
Requests an on-mesh prefix to be published in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Only stable entries can be published (i.e.,aConfig.mStable
MUST be TRUE).
A subsequent call to this method will replace a previous request for the same prefix. In particular, if the new call only changes the flags (e.g., preference level) and the prefix is already added in the Network Data, the change to flags is immediately reflected in the Network Data. This ensures that existing entries in the Network Data are not abruptly removed. Note that a change in the preference level can potentially later cause the entry to be removed from the Network Data after determining there are other nodes that are publishing the same prefix with the same or higher preference.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataReplacePublishedExternalRoute
otError otNetDataReplacePublishedExternalRoute( otInstance *aInstance, const otIp6Prefix *aPrefix, const otExternalRouteConfig *aConfig )
Replaces a previously published external route in the Thread Network Data.
Requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
If there is no previously published external route matching aPrefix
, this function behaves similarly to otNetDataPublishExternalRoute()
, i.e., it will start the process of publishing aConfig as an external route in the Thread Network Data.
If there is a previously published route entry matching aPrefix
, it will be replaced with the new prefix from aConfig
.
- If the
aPrefix
was already added in the Network Data, the change to the new prefix inaConfig
is immediately reflected in the Network Data. This ensures that route entries in the Network Data are not abruptly removed and the transition from aPrefix to the new prefix is smooth. - If the old published
aPrefix
was not added in the Network Data, it will be replaced with the newaConfig
prefix but it will not be immediately added. Instead, it will start the process of publishing it in the Network Data (monitoring the Network Data to determine when/if to add the prefix, depending on the number of similar prefixes present in the Network Data).
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataResetMaxLength
void otNetDataResetMaxLength( otInstance *aInstance )
Reset the tracked maximum length of the Thread Network Data.
Details | |||
---|---|---|---|
Parameters |
|
otNetDataGetMaxLength
otNetDataSetDnsSrpServicePublisherCallback
void otNetDataSetDnsSrpServicePublisherCallback( otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext )
Sets a callback for notifying when a published "DNS/SRP Service" is actually added to or removed from the Thread Network Data.
A subsequent call to this function replaces any previously set callback function.
Requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otNetDataSetPrefixPublisherCallback
void otNetDataSetPrefixPublisherCallback( otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext )
Sets a callback for notifying when a published prefix entry is actually added to or removed from the Thread Network Data.
A subsequent call to this function replaces any previously set callback function.
Requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otNetDataSteeringDataCheckJoiner
otError otNetDataSteeringDataCheckJoiner( otInstance *aInstance, const otExtAddress *aEui64 )
Check if the steering data includes a Joiner.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataSteeringDataCheckJoinerWithDiscerner
otError otNetDataSteeringDataCheckJoinerWithDiscerner( otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner )
Check if the steering data includes a Joiner with a given discerner value.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otNetDataUnpublishDnsSrpService
void otNetDataUnpublishDnsSrpService( otInstance *aInstance )
Unpublishes any previously added DNS/SRP (Anycast or Unicast) Service entry from the Thread Network Data.
OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
must be enabled.
Details | |||
---|---|---|---|
Parameters |
|
otNetDataUnpublishPrefix
otError otNetDataUnpublishPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
Unpublishes a previously published On-Mesh or External Route Prefix.
OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
must be enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadBecomeChild
otError otThreadBecomeChild( otInstance *aInstance )
Attempt to reattach as a child.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadBecomeDetached
otError otThreadBecomeDetached( otInstance *aInstance )
Detach from the Thread network.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadDetachGracefully
otError otThreadDetachGracefully( otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext )
Notifies other nodes in the network (if any) and then stops Thread protocol operation.
It sends an Address Release if it's a router, or sets its child timeout to 0 if it's a child.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadDeviceRoleToString
const char * otThreadDeviceRoleToString( otDeviceRole aRole )
Convert the device role to human-readable string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A string representing
aRole . |
otThreadDiscover
otError otThreadDiscover( otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext )
Starts a Thread Discovery scan.
Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||||
Return Values |
|
otThreadGetChildTimeout
uint32_t otThreadGetChildTimeout( otInstance *aInstance )
Gets the Thread Child Timeout (in seconds) used when operating in the Child role.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Thread Child Timeout value in seconds.
|
otThreadSetChildTimeout
otThreadGetDeviceRole
otDeviceRole otThreadGetDeviceRole( otInstance *aInstance )
Get the device role.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
otThreadGetDomainName
const char * otThreadGetDomainName( otInstance *aInstance )
Gets the Thread Domain Name.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Thread Domain Name.
|
otThreadSetDomainName
otThreadGetExtendedPanId
const otExtendedPanId * otThreadGetExtendedPanId( otInstance *aInstance )
Gets the IEEE 802.15.4 Extended PAN ID.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the IEEE 802.15.4 Extended PAN ID.
|
otThreadSetExtendedPanId
otThreadGetFixedDuaInterfaceIdentifier
const otIp6InterfaceIdentifier * otThreadGetFixedDuaInterfaceIdentifier( otInstance *aInstance )
Gets the Interface Identifier manually specified for the Thread Domain Unicast Address.
Available when OPENTHREAD_CONFIG_DUA_ENABLE
is enabled.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Interface Identifier which was set manually, or NULL if none was set.
|
otThreadSetFixedDuaInterfaceIdentifier
otThreadGetIp6Counters
const otIpCounters * otThreadGetIp6Counters( otInstance *aInstance )
Gets the IPv6 counters.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the IPv6 counters.
|
otThreadGetKeySequenceCounter
uint32_t otThreadGetKeySequenceCounter( otInstance *aInstance )
Gets the thrKeySequenceCounter.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The thrKeySequenceCounter value.
|
otThreadSetKeySequenceCounter
otThreadGetKeySwitchGuardTime
uint16_t otThreadGetKeySwitchGuardTime( otInstance *aInstance )
Gets the thrKeySwitchGuardTime (in hours).
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The thrKeySwitchGuardTime value (in hours).
|
otThreadSetKeySwitchGuardTime
otThreadGetLeaderData
otError otThreadGetLeaderData( otInstance *aInstance, otLeaderData *aLeaderData )
Get the Thread Leader Data.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetLeaderRloc
otError otThreadGetLeaderRloc( otInstance *aInstance, otIp6Address *aLeaderRloc )
Returns a pointer to the Leader's RLOC.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadGetLeaderRouterId
uint8_t otThreadGetLeaderRouterId( otInstance *aInstance )
Get the Leader's Router ID.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Leader's Router ID.
|
otThreadGetLeaderWeight
uint8_t otThreadGetLeaderWeight( otInstance *aInstance )
Get the Leader's Weight.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Leader's Weight.
|
otThreadGetLinkLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetLinkLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
Gets the Thread Link-Local All Thread Nodes multicast address.
The address is a link-local Unicast Prefix-Based Multicast Address [RFC 3306], with:
- flgs set to 3 (P = 1 and T = 1)
- scop set to 2
- plen set to 64
- network prefix set to the Mesh Local Prefix
- group ID set to 1
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to Thread Link-Local All Thread Nodes multicast address.
|
otThreadGetLinkLocalIp6Address
const otIp6Address * otThreadGetLinkLocalIp6Address( otInstance *aInstance )
Gets the Thread link-local IPv6 address.
The Thread link local address is derived using IEEE802.15.4 Extended Address as Interface Identifier.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to Thread link-local IPv6 address.
|
otThreadGetLinkMode
otLinkModeConfig otThreadGetLinkMode( otInstance *aInstance )
Get the MLE Link Mode configuration.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The MLE Link Mode configuration.
|
otThreadSetLinkMode
otThreadGetMaxTimeInQueue
uint32_t otThreadGetMaxTimeInQueue( otInstance *aInstance )
Gets the maximum time-in-queue for messages in the TX queue.
Requires OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE
.
The time-in-queue is tracked for direct transmissions only and is measured as the duration from when a message is added to the transmit queue until it is passed to the MAC layer for transmission or dropped.
The collected statistics can be reset by calling otThreadResetTimeInQueueStat()
.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The maximum time-in-queue in milliseconds for all messages in the TX queue (so far).
|
otThreadGetMeshLocalEid
const otIp6Address * otThreadGetMeshLocalEid( otInstance *aInstance )
Gets the Mesh Local EID address.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Mesh Local EID address.
|
otThreadGetMeshLocalPrefix
const otMeshLocalPrefix * otThreadGetMeshLocalPrefix( otInstance *aInstance )
Returns a pointer to the Mesh Local Prefix.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Mesh Local Prefix.
|
otThreadGetMleCounters
const otMleCounters * otThreadGetMleCounters( otInstance *aInstance )
Gets the Thread MLE counters.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Thread MLE counters.
|
otThreadGetNetworkKey
void otThreadGetNetworkKey( otInstance *aInstance, otNetworkKey *aNetworkKey )
Get the Thread Network Key.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadSetNetworkKey
otThreadGetNetworkKeyRef
otNetworkKeyRef otThreadGetNetworkKeyRef( otInstance *aInstance )
Get the otNetworkKeyRef
for Thread Network Key.
Requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
Reference to the Thread Network Key stored in memory.
|
otThreadSetNetworkKeyRef
otThreadGetNetworkName
const char * otThreadGetNetworkName( otInstance *aInstance )
Get the Thread Network Name.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Thread Network Name.
|
otThreadSetNetworkName
otThreadGetNextDiagnosticTlv
otError otThreadGetNextDiagnosticTlv( const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv )
Gets the next Network Diagnostic TLV in the message.
Requires OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE
.
A subsequent call to this function is allowed only when current return value is OT_ERROR_NONE.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadGetNextNeighborInfo
otError otThreadGetNextNeighborInfo( otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo )
Gets the next neighbor information.
It is used to go through the entries of the neighbor table.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadGetParentAverageRssi
otError otThreadGetParentAverageRssi( otInstance *aInstance, int8_t *aParentRssi )
The function retrieves the average RSSI for the Thread Parent.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadGetParentInfo
otError otThreadGetParentInfo( otInstance *aInstance, otRouterInfo *aParentInfo )
The function retrieves diagnostic information for a Thread Router as parent.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadGetParentLastRssi
otError otThreadGetParentLastRssi( otInstance *aInstance, int8_t *aLastRssi )
The function retrieves the RSSI of the last packet from the Thread Parent.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadGetPartitionId
uint32_t otThreadGetPartitionId( otInstance *aInstance )
Get the Partition ID.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The Partition ID.
|
otThreadGetRealmLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetRealmLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
Gets the Thread Realm-Local All Thread Nodes multicast address.
The address is a realm-local Unicast Prefix-Based Multicast Address [RFC 3306], with:
- flgs set to 3 (P = 1 and T = 1)
- scop set to 3
- plen set to 64
- network prefix set to the Mesh Local Prefix
- group ID set to 1
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to Thread Realm-Local All Thread Nodes multicast address.
|
otThreadGetRloc
const otIp6Address * otThreadGetRloc( otInstance *aInstance )
Gets the Thread Routing Locator (RLOC) address.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the Thread Routing Locator (RLOC) address.
|
otThreadGetRloc16
uint16_t otThreadGetRloc16( otInstance *aInstance )
Get the RLOC16.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The RLOC16.
|
otThreadGetServiceAloc
otError otThreadGetServiceAloc( otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc )
Retrieves the Service ALOC for given Service ID.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otThreadGetStoreFrameCounterAhead
uint32_t otThreadGetStoreFrameCounterAhead( otInstance *aInstance )
Gets the store frame counter ahead.
Requires OPENTHREAD_CONFIG_DYNAMIC_STORE_FRAME_AHEAD_COUNTER_ENABLE
to be enabled.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The current store frame counter ahead.
|
otThreadGetTimeInQueueHistogram
const uint32_t * otThreadGetTimeInQueueHistogram( otInstance *aInstance, uint16_t *aNumBins, uint32_t *aBinInterval )
Gets the time-in-queue histogram for messages in the TX queue.
Requires OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE
.
Histogram of the time-in-queue of messages in the transmit queue is collected. The time-in-queue is tracked for direct transmissions only and is measured as the duration from when a message is added to the transmit queue until it is passed to the MAC layer for transmission or dropped.
The histogram is returned as an array of uint32_t
values with aNumBins
entries. The first entry in the array (at index 0) represents the number of messages with a time-in-queue less than aBinInterval
. The second entry represents the number of messages with a time-in-queue greater than or equal to aBinInterval
, but less than 2 * aBinInterval
. And so on. The last entry represents the number of messages with time-in-queue greater than or equal to (aNumBins - 1) * aBinInterval
.
The collected statistics can be reset by calling otThreadResetTimeInQueueStat()
. The histogram information is collected since the OpenThread instance was initialized or since the last time statistics collection was reset by calling the otThreadResetTimeInQueueStat()
.
Pointers aNumBins
and aBinInterval
MUST NOT be NULL.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns |
A pointer to an array of
aNumBins entries representing the collected histogram info. |
otThreadGetVendorAppUrl
const char * otThreadGetVendorAppUrl( otInstance *aInstance )
Get the vendor app URL string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The vendor app URL string.
|
otThreadGetVendorModel
const char * otThreadGetVendorModel( otInstance *aInstance )
Get the vendor model string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The vendor model string.
|
otThreadGetVendorName
const char * otThreadGetVendorName( otInstance *aInstance )
Get the vendor name string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The vendor name string.
|
otThreadGetVendorSwVersion
const char * otThreadGetVendorSwVersion( otInstance *aInstance )
Get the vendor software version string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The vendor software version string.
|
otThreadGetVersion
uint16_t otThreadGetVersion( void )
Gets the Thread protocol version.
The constants OT_THREAD_VERSION_*
define the numerical version values.
Details | |
---|---|
Returns |
the Thread protocol version.
|
otThreadIsAnycastLocateInProgress
bool otThreadIsAnycastLocateInProgress( otInstance *aInstance )
Indicates whether an anycast locate request is currently in progress.
Is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
TRUE if an anycast locate request is currently in progress, FALSE otherwise.
|
otThreadIsDiscoverInProgress
bool otThreadIsDiscoverInProgress( otInstance *aInstance )
Determines if an MLE Thread Discovery is currently in progress.
Details | |||
---|---|---|---|
Parameters |
|
otThreadIsSingleton
bool otThreadIsSingleton( otInstance *aInstance )
Indicates whether a node is the only router on the network.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadLocateAnycastDestination
otError otThreadLocateAnycastDestination( otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext )
Requests the closest destination of a given anycast address to be located.
Is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
If a previous request is ongoing, a subsequent call to this function will cancel and replace the earlier request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otThreadRegisterParentResponseCallback
void otThreadRegisterParentResponseCallback( otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext )
Registers a callback to receive MLE Parent Response data.
Requires OPENTHREAD_CONFIG_MLE_PARENT_RESPONSE_CALLBACK_API_ENABLE
.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otThreadResetIp6Counters
void otThreadResetIp6Counters( otInstance *aInstance )
Resets the IPv6 counters.
Details | |||
---|---|---|---|
Parameters |
|
otThreadResetMleCounters
void otThreadResetMleCounters( otInstance *aInstance )
Resets the Thread MLE counters.
Details | |||
---|---|---|---|
Parameters |
|
otThreadResetTimeInQueueStat
void otThreadResetTimeInQueueStat( otInstance *aInstance )
Resets the TX queue time-in-queue statistics.
Requires OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE
.
Details | |||
---|---|---|---|
Parameters |
|
otThreadSearchForBetterParent
otError otThreadSearchForBetterParent( otInstance *aInstance )
Starts the process for child to search for a better parent while staying attached to its current parent.
Must be used when device is attached as a child.
Details | |||||
---|---|---|---|---|---|
Return Values |
|
otThreadSendAddressNotification
void otThreadSendAddressNotification( otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid )
Sends a Proactive Address Notification (ADDR_NTF.ntf) message.
Is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
otThreadSendDiagnosticGet
otError otThreadSendDiagnosticGet( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext )
Send a Network Diagnostic Get request.
Requires OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE
.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||
Return Values |
|
otThreadSendDiagnosticReset
otError otThreadSendDiagnosticReset( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount )
Send a Network Diagnostic Reset request.
Requires OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE
.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otThreadSendProactiveBackboneNotification
otError otThreadSendProactiveBackboneNotification( otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction )
Sends a Proactive Backbone Notification (PRO_BB.ntf) message on the Backbone link.
Is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otThreadSetChildTimeout
void otThreadSetChildTimeout( otInstance *aInstance, uint32_t aTimeout )
Sets the Thread Child Timeout (in seconds) used when operating in the Child role.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadGetChildTimeout
otThreadSetDiscoveryRequestCallback
void otThreadSetDiscoveryRequestCallback( otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext )
Sets a callback to receive MLE Discovery Request data.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otThreadSetDomainName
otError otThreadSetDomainName( otInstance *aInstance, const char *aDomainName )
Sets the Thread Domain Name.
Only succeeds when Thread protocols are disabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetDomainName
otThreadSetEnabled
otError otThreadSetEnabled( otInstance *aInstance, bool aEnabled )
Starts Thread protocol operation.
The interface must be up when calling this function.
Calling this function with aEnabled
set to FALSE stops any ongoing processes of detaching started by otThreadDetachGracefully(). Its callback will be called.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadSetExtendedPanId
otError otThreadSetExtendedPanId( otInstance *aInstance, const otExtendedPanId *aExtendedPanId )
Sets the IEEE 802.15.4 Extended PAN ID.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetExtendedPanId
otThreadSetFixedDuaInterfaceIdentifier
otError otThreadSetFixedDuaInterfaceIdentifier( otInstance *aInstance, const otIp6InterfaceIdentifier *aIid )
Sets or clears the Interface Identifier manually specified for the Thread Domain Unicast Address.
Available when OPENTHREAD_CONFIG_DUA_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetFixedDuaInterfaceIdentifier
otThreadSetJoinerAdvertisement
otError otThreadSetJoinerAdvertisement( otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength )
Sets the Thread Joiner Advertisement when discovering Thread network.
Thread Joiner Advertisement is used to allow a Joiner to advertise its own application-specific information (such as Vendor ID, Product ID, Discriminator, etc.) via a newly-proposed Joiner Advertisement TLV, and to make this information available to Commissioners or Commissioner Candidates without human interaction.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otThreadSetKeySequenceCounter
void otThreadSetKeySequenceCounter( otInstance *aInstance, uint32_t aKeySequenceCounter )
Sets the thrKeySequenceCounter.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadGetKeySequenceCounter
otThreadSetKeySwitchGuardTime
void otThreadSetKeySwitchGuardTime( otInstance *aInstance, uint16_t aKeySwitchGuardTime )
Sets the thrKeySwitchGuardTime (in hours).
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadGetKeySwitchGuardTime
otThreadSetLinkMode
otError otThreadSetLinkMode( otInstance *aInstance, otLinkModeConfig aConfig )
Set the MLE Link Mode configuration.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetLinkMode
otThreadSetMeshLocalPrefix
otError otThreadSetMeshLocalPrefix( otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix )
Sets the Mesh Local Prefix.
Succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadSetNetworkKey
otError otThreadSetNetworkKey( otInstance *aInstance, const otNetworkKey *aKey )
Set the Thread Network Key.
Succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetNetworkKey
otThreadSetNetworkKeyRef
otError otThreadSetNetworkKeyRef( otInstance *aInstance, otNetworkKeyRef aKeyRef )
Set the Thread Network Key as a otNetworkKeyRef
.
Succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetNetworkKeyRef
otThreadSetNetworkName
otError otThreadSetNetworkName( otInstance *aInstance, const char *aNetworkName )
Set the Thread Network Name.
Succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadGetNetworkName
otThreadSetStoreFrameCounterAhead
void otThreadSetStoreFrameCounterAhead( otInstance *aInstance, uint32_t aStoreFrameCounterAhead )
Sets the store frame counter ahead.
Requires OPENTHREAD_CONFIG_DYNAMIC_STORE_FRAME_AHEAD_COUNTER_ENABLE
to be enabled.
The OpenThread stack stores the MLE and MAC security frame counter values in non-volatile storage, ensuring they persist across device resets. These saved values are set to be ahead of their current values by the "frame counter ahead" value.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otThreadSetVendorAppUrl
otError otThreadSetVendorAppUrl( otInstance *aInstance, const char *aVendorAppUrl )
Set the vendor app URL string.
Requires OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE
.
aVendorAppUrl
should be UTF8 with max length of 64 chars (MAX_VENDOR_APPL_URL_TLV_LENGTH
). Maximum length does not include the null \0
character.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadSetVendorModel
otError otThreadSetVendorModel( otInstance *aInstance, const char *aVendorModel )
Set the vendor model string.
Requires OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE
.
aVendorModel
should be UTF8 with max length of 32 chars (MAX_VENDOR_MODEL_TLV_LENGTH
). Maximum length does not include the null \0
character.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadSetVendorName
otError otThreadSetVendorName( otInstance *aInstance, const char *aVendorName )
Set the vendor name string.
Requires OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE
.
aVendorName
should be UTF8 with max length of 32 chars (MAX_VENDOR_NAME_TLV_LENGTH
). Maximum length does not include the null \0
character.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadSetVendorSwVersion
otError otThreadSetVendorSwVersion( otInstance *aInstance, const char *aVendorSwVersion )
Set the vendor software version string.
Requires OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE
.
aVendorSwVersion
should be UTF8 with max length of 16 chars(MAX_VENDOR_SW_VERSION_TLV_LENGTH
). Maximum length does not include the null \0
character.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otThreadWakeup
otError otThreadWakeup( otInstance *aInstance, const otExtAddress *aWedAddress, uint16_t aWakeupIntervalUs, uint16_t aWakeupDurationMs, otWakeupCallback aCallback, void *aCallbackContext )
Attempts to wake a Wake-up End Device.
Requires OPENTHREAD_CONFIG_WAKEUP_COORDINATOR_ENABLE
to be enabled.
The wake-up starts with transmitting a wake-up frame sequence to the Wake-up End Device. During the wake-up sequence, and for a short time after the last wake-up frame is sent, the Wake-up Coordinator keeps its receiver on to be able to receive an initial mesh link establishment message from the WED.
The functionality implemented by this function is still in the design phase. Consequently, the prototype and semantics of this function are subject to change.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||
Return Values |
|
Macros
OT_DURATION_STRING_SIZE
OT_DURATION_STRING_SIZE 21
Recommended size for string representation of uint32_t
duration in seconds.
OT_JOINER_ADVDATA_MAX_LENGTH
OT_JOINER_ADVDATA_MAX_LENGTH 64
Maximum AdvData Length of Joiner Advertisement.
OT_NEIGHBOR_INFO_ITERATOR_INIT
OT_NEIGHBOR_INFO_ITERATOR_INIT 0
Initializer for otNeighborInfoIterator.
OT_NETWORK_BASE_TLV_MAX_LENGTH
OT_NETWORK_BASE_TLV_MAX_LENGTH 254
Maximum value length of Thread Base TLV.
OT_NETWORK_DATA_ITERATOR_INIT
OT_NETWORK_DATA_ITERATOR_INIT 0
Value to initialize otNetworkDataIterator
.
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT 0
Initializer for otNetworkDiagIterator
.
OT_NETWORK_DIAGNOSTIC_MAX_THREAD_STACK_VERSION_TLV_LENGTH
OT_NETWORK_DIAGNOSTIC_MAX_THREAD_STACK_VERSION_TLV_LENGTH 64
Max length of Thread Stack Version TLV.
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_APP_URL_TLV_LENGTH
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_APP_URL_TLV_LENGTH 96
Max length of Vendor App URL TLV.
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_MODEL_TLV_LENGTH
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_MODEL_TLV_LENGTH 32
Max length of Vendor Model TLV.
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_NAME_TLV_LENGTH
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_NAME_TLV_LENGTH 32
Max length of Vendor Name TLV.
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_SW_VERSION_TLV_LENGTH
OT_NETWORK_DIAGNOSTIC_MAX_VENDOR_SW_VERSION_TLV_LENGTH 16
Max length of Vendor SW Version TLV.
OT_NETWORK_DIAGNOSTIC_TLV_ANSWER
OT_NETWORK_DIAGNOSTIC_TLV_ANSWER 32
Answer TLV.
OT_NETWORK_DIAGNOSTIC_TLV_BATTERY_LEVEL
OT_NETWORK_DIAGNOSTIC_TLV_BATTERY_LEVEL 14
Battery Level TLV.
OT_NETWORK_DIAGNOSTIC_TLV_CHANNEL_PAGES
OT_NETWORK_DIAGNOSTIC_TLV_CHANNEL_PAGES 17
Channel Pages TLV.
OT_NETWORK_DIAGNOSTIC_TLV_CHILD
OT_NETWORK_DIAGNOSTIC_TLV_CHILD 29
Child TLV.
OT_NETWORK_DIAGNOSTIC_TLV_CHILD_IP6_ADDR_LIST
OT_NETWORK_DIAGNOSTIC_TLV_CHILD_IP6_ADDR_LIST 30
Child IPv6 Address List TLV.
OT_NETWORK_DIAGNOSTIC_TLV_CHILD_TABLE
OT_NETWORK_DIAGNOSTIC_TLV_CHILD_TABLE 16
Child Table TLV.
OT_NETWORK_DIAGNOSTIC_TLV_CONNECTIVITY
OT_NETWORK_DIAGNOSTIC_TLV_CONNECTIVITY 4
Connectivity TLV.
OT_NETWORK_DIAGNOSTIC_TLV_EUI64
OT_NETWORK_DIAGNOSTIC_TLV_EUI64 23
EUI64 TLV.
OT_NETWORK_DIAGNOSTIC_TLV_EXT_ADDRESS
OT_NETWORK_DIAGNOSTIC_TLV_EXT_ADDRESS 0
MAC Extended Address TLV.
OT_NETWORK_DIAGNOSTIC_TLV_IP6_ADDR_LIST
OT_NETWORK_DIAGNOSTIC_TLV_IP6_ADDR_LIST 8
IPv6 Address List TLV.
OT_NETWORK_DIAGNOSTIC_TLV_LEADER_DATA
OT_NETWORK_DIAGNOSTIC_TLV_LEADER_DATA 6
Leader Data TLV.
OT_NETWORK_DIAGNOSTIC_TLV_MAC_COUNTERS
OT_NETWORK_DIAGNOSTIC_TLV_MAC_COUNTERS 9
MAC Counters TLV.
OT_NETWORK_DIAGNOSTIC_TLV_MAX_CHILD_TIMEOUT
OT_NETWORK_DIAGNOSTIC_TLV_MAX_CHILD_TIMEOUT 19
Max Child Timeout TLV.
OT_NETWORK_DIAGNOSTIC_TLV_MLE_COUNTERS
OT_NETWORK_DIAGNOSTIC_TLV_MLE_COUNTERS 34
MLE Counters TLV.
OT_NETWORK_DIAGNOSTIC_TLV_MODE
OT_NETWORK_DIAGNOSTIC_TLV_MODE 2
Mode TLV.
OT_NETWORK_DIAGNOSTIC_TLV_NETWORK_DATA
OT_NETWORK_DIAGNOSTIC_TLV_NETWORK_DATA 7
Network Data TLV.
OT_NETWORK_DIAGNOSTIC_TLV_QUERY_ID
OT_NETWORK_DIAGNOSTIC_TLV_QUERY_ID 33
Query ID TLV.
OT_NETWORK_DIAGNOSTIC_TLV_ROUTE
OT_NETWORK_DIAGNOSTIC_TLV_ROUTE 5
Route64 TLV.
OT_NETWORK_DIAGNOSTIC_TLV_ROUTER_NEIGHBOR
OT_NETWORK_DIAGNOSTIC_TLV_ROUTER_NEIGHBOR 31
Router Neighbor TLV.
OT_NETWORK_DIAGNOSTIC_TLV_SHORT_ADDRESS
OT_NETWORK_DIAGNOSTIC_TLV_SHORT_ADDRESS 1
Address16 TLV.
OT_NETWORK_DIAGNOSTIC_TLV_SUPPLY_VOLTAGE
OT_NETWORK_DIAGNOSTIC_TLV_SUPPLY_VOLTAGE 15
Supply Voltage TLV.
OT_NETWORK_DIAGNOSTIC_TLV_THREAD_STACK_VERSION
OT_NETWORK_DIAGNOSTIC_TLV_THREAD_STACK_VERSION 28
Thread Stack Version TLV (codebase/commit version)
OT_NETWORK_DIAGNOSTIC_TLV_TIMEOUT
OT_NETWORK_DIAGNOSTIC_TLV_TIMEOUT 3
Timeout TLV (max polling time period for SEDs)
OT_NETWORK_DIAGNOSTIC_TLV_TYPE_LIST
OT_NETWORK_DIAGNOSTIC_TLV_TYPE_LIST 18
Type List TLV.
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_APP_URL
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_APP_URL 35
Vendor App URL TLV.
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_MODEL
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_MODEL 26
Vendor Model TLV.
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_NAME
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_NAME 25
Vendor Name TLV.
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_SW_VERSION
OT_NETWORK_DIAGNOSTIC_TLV_VENDOR_SW_VERSION 27
Vendor SW Version TLV.
OT_NETWORK_DIAGNOSTIC_TLV_VERSION
OT_NETWORK_DIAGNOSTIC_TLV_VERSION 24
Thread Version TLV.
OT_NETWORK_MAX_ROUTER_ID
OT_NETWORK_MAX_ROUTER_ID 62
Maximum Router ID.
OT_SERVER_DATA_MAX_SIZE
OT_SERVER_DATA_MAX_SIZE 248
Max size of Server Data in bytes. Theoretical limit, practically much lower.
OT_SERVICE_DATA_MAX_SIZE
OT_SERVICE_DATA_MAX_SIZE 252
Max size of Service Data in bytes.
OT_THREAD_VERSION_1_1
OT_THREAD_VERSION_1_1 2
Thread Version 1.1.
OT_THREAD_VERSION_1_2
OT_THREAD_VERSION_1_2 3
Thread Version 1.2.
OT_THREAD_VERSION_1_3
OT_THREAD_VERSION_1_3 4
Thread Version 1.3.
OT_THREAD_VERSION_1_3_1
OT_THREAD_VERSION_1_3_1 5
Thread Version 1.3.1 (alias for 1.4)
OT_THREAD_VERSION_1_4
OT_THREAD_VERSION_1_4 5
Thread Version 1.4.
OT_THREAD_VERSION_INVALID
OT_THREAD_VERSION_INVALID 0
Invalid Thread version.
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.