Border Agent TXT Data Parser#
This module includes APIs for parsing the MeshCoP service TXT data of a Border Agent.
Modules#
Enumerations#
Represents the Connection Mode in a Border Agent State Bitmap.
Represents the Thread Interface Status in a Border Agent State Bitmap.
Represents the Availability Status in a Border Agent State Bitmap.
Represents the Thread Role in a Border Agent State Bitmap.
Represents the Multi-AIL (Adjacent Infrastructure Link) detection state in a Border Agent State Bitmap.
Typedefs#
Represents the Connection Mode in a Border Agent State Bitmap.
Represents the Thread Interface Status in a Border Agent State Bitmap.
Represents the Availability Status in a Border Agent State Bitmap.
Represents the Thread Role in a Border Agent State Bitmap.
Represents the Multi-AIL (Adjacent Infrastructure Link) detection state in a Border Agent State Bitmap.
Represents Border Agent State Bitmap information.
Represents parsed Border Agent TXT data.
Functions#
Parses a Border Agent's MeshCoP service TXT data.
Converts a given Connection Mode in a Border Agent State Bitmap to a human-readable string.
Converts a given Thread Interface State in a Border Agent State Bitmap to a human-readable string.
Converts a given Availability Status in a Border Agent State Bitmap to a human-readable string.
Converts a given Thread Role in a Border Agent State Bitmap to a human-readable string.
Converts a given Multi-AIL State in a Border Agent State Bitmap to a human-readable string.
Macros#
Max size of Record Version string in otBorderAgentTxtDataInfo.
Max size of Thread Version string in otBorderAgentTxtDataInfo.
Max size of Vendor Name string in otBorderAgentTxtDataInfo.
Max size of Model Name string in otBorderAgentTxtDataInfo.
Size of Vendor OUI (in bytes) in otBorderAgentTxtDataInfo.
Enumeration Documentation#
otBorderAgentConnMode#
otBorderAgentConnMode
Represents the Connection Mode in a Border Agent State Bitmap.
| Enumerator | |
|---|---|
| OT_BORDER_AGENT_CONN_MODE_DISABLED | DTLS connection not allowed. |
| OT_BORDER_AGENT_CONN_MODE_PSKC | DTLS connection with PSKc. |
| OT_BORDER_AGENT_CONN_MODE_PSKD | DTLS connection with PSKd. |
| OT_BORDER_AGENT_CONN_MODE_VENDOR | DTLS with vendor defined credential. |
| OT_BORDER_AGENT_CONN_MODE_X509 | DTLS with X.509 certificate. |
otBorderAgentThreadIfState#
otBorderAgentThreadIfState
Represents the Thread Interface Status in a Border Agent State Bitmap.
| Enumerator | |
|---|---|
| OT_BORDER_AGENT_THREAD_IF_NOT_INITIALIZED | Thread interface is not initialized. |
| OT_BORDER_AGENT_THREAD_IF_INITIALIZED | Thread interface is initialized but is not yet active. |
| OT_BORDER_AGENT_THREAD_IF_ACTIVE | Thread interface is initialized and active. |
otBorderAgentAvailability#
otBorderAgentAvailability
Represents the Availability Status in a Border Agent State Bitmap.
| Enumerator | |
|---|---|
| OT_BORDER_AGENT_AVAILABILITY_INFREQUENT | Infrequent availability. |
| OT_BORDER_AGENT_AVAILABILITY_HIGH | High availability. |
otBorderAgentThreadRole#
otBorderAgentThreadRole
Represents the Thread Role in a Border Agent State Bitmap.
| Enumerator | |
|---|---|
| OT_BORDER_AGENT_THREAD_ROLE_DISABLED_OR_DETACHED | Detached or disabled. |
| OT_BORDER_AGENT_THREAD_ROLE_CHILD | End device (child). |
| OT_BORDER_AGENT_THREAD_ROLE_ROUTER | Router. |
| OT_BORDER_AGENT_THREAD_ROLE_LEADER | Leader. |
otBorderAgentMultiAilState#
otBorderAgentMultiAilState
Represents the Multi-AIL (Adjacent Infrastructure Link) detection state in a Border Agent State Bitmap.
| Enumerator | |
|---|---|
| OT_BORDER_AGENT_MULTI_AIL_STATE_DISABLED | Multi-AIL detection is disabled. |
| OT_BORDER_AGENT_MULTI_AIL_STATE_NOT_DETECTED | Multi-AIL detection is enabled, not detected. |
| OT_BORDER_AGENT_MULTI_AIL_STATE_DETECTED | Multi-AIL detection is enabled, detected. |
Typedef Documentation#
otBorderAgentConnMode#
typedef enum otBorderAgentConnMode otBorderAgentConnMode
Represents the Connection Mode in a Border Agent State Bitmap.
otBorderAgentThreadIfState#
typedef enum otBorderAgentThreadIfState otBorderAgentThreadIfState
Represents the Thread Interface Status in a Border Agent State Bitmap.
otBorderAgentAvailability#
typedef enum otBorderAgentAvailability otBorderAgentAvailability
Represents the Availability Status in a Border Agent State Bitmap.
otBorderAgentThreadRole#
typedef enum otBorderAgentThreadRole otBorderAgentThreadRole
Represents the Thread Role in a Border Agent State Bitmap.
otBorderAgentMultiAilState#
typedef enum otBorderAgentMultiAilState otBorderAgentMultiAilState
Represents the Multi-AIL (Adjacent Infrastructure Link) detection state in a Border Agent State Bitmap.
otBorderAgentStateBitmap#
typedef struct otBorderAgentStateBitmap otBorderAgentStateBitmap
Represents Border Agent State Bitmap information.
otBorderAgentTxtDataInfo#
typedef struct otBorderAgentTxtDataInfo otBorderAgentTxtDataInfo
Represents parsed Border Agent TXT data.
The boolean flags indicate whether a specific field is present in the parsed TXT data.
Function Documentation#
otBorderAgentTxtDataParse#
otError otBorderAgentTxtDataParse (const uint8_t * aTxtData, uint16_t aTxtDataLength, otBorderAgentTxtDataInfo * aInfo)
Parses a Border Agent's MeshCoP service TXT data.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| const uint8_t * | [in] | aTxtData | A pointer to the buffer containing the TXT data. |
| uint16_t | [in] | aTxtDataLength | The length of the TXT data in bytes. |
| otBorderAgentTxtDataInfo * | [out] | aInfo | A pointer to a structure to output the parsed information. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
otBorderAgentConnModeToString#
const char * otBorderAgentConnModeToString (otBorderAgentConnMode aConnMode)
Converts a given Connection Mode in a Border Agent State Bitmap to a human-readable string.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| otBorderAgentConnMode | [in] | aConnMode | The Connection Mode to convert. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
Returns
The string representation of
aConnMode.
otBorderAgentIfStateToString#
const char * otBorderAgentIfStateToString (otBorderAgentThreadIfState aIfState)
Converts a given Thread Interface State in a Border Agent State Bitmap to a human-readable string.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| otBorderAgentThreadIfState | [in] | aIfState | The Thread Interface State to convert. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
Returns
The string representation of
aIfState.
otBorderAgentAvailabilityToString#
const char * otBorderAgentAvailabilityToString (otBorderAgentAvailability aAvailability)
Converts a given Availability Status in a Border Agent State Bitmap to a human-readable string.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| otBorderAgentAvailability | [in] | aAvailability | The Availability Status to convert. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
Returns
The string representation of
aAvailability.
otBorderAgentThreadRoleToString#
const char * otBorderAgentThreadRoleToString (otBorderAgentThreadRole aRole)
Converts a given Thread Role in a Border Agent State Bitmap to a human-readable string.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| otBorderAgentThreadRole | [in] | aRole | The Thread Role to convert. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
Returns
The string representation of
aRole.
otBorderAgentMultiAilStateToString#
const char * otBorderAgentMultiAilStateToString (otBorderAgentMultiAilState aState)
Converts a given Multi-AIL State in a Border Agent State Bitmap to a human-readable string.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| otBorderAgentMultiAilState | [in] | aState | The Multi-AIL State to convert. |
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
Returns
The string representation of
aState.