Border Agent TXT Data Parser
This module includes APIs for parsing the MeshCoP service TXT data of a Border Agent.
Summary
Enumerations |
|
|---|---|
otBorderAgentAvailability{
|
enum Represents the Availability Status in a Border Agent State Bitmap. |
otBorderAgentConnMode{
|
enum Represents the Connection Mode in a Border Agent State Bitmap. |
otBorderAgentThreadIfState{
|
enum Represents the Thread Interface Status in a Border Agent State Bitmap. |
otBorderAgentThreadRole{
|
enum Represents the Thread Role in a Border Agent State Bitmap. |
Typedefs |
|
|---|---|
otBorderAgentAvailability
|
typedef Represents the Availability Status in a Border Agent State Bitmap. |
otBorderAgentConnMode
|
typedef Represents the Connection Mode in a Border Agent State Bitmap. |
otBorderAgentStateBitmap
|
typedefstruct otBorderAgentStateBitmap
Represents Border Agent State Bitmap information. |
otBorderAgentThreadIfState
|
typedef Represents the Thread Interface Status in a Border Agent State Bitmap. |
otBorderAgentThreadRole
|
typedef Represents the Thread Role in a Border Agent State Bitmap. |
otBorderAgentTxtDataInfo
|
typedefstruct otBorderAgentTxtDataInfo
Represents parsed Border Agent TXT data. |
Functions |
|
|---|---|
otBorderAgentTxtDataParse(const uint8_t *aTxtData, uint16_t aTxtDataLength, otBorderAgentTxtDataInfo *aInfo)
|
Parses a Border Agent's MeshCoP service TXT data.
|
Macros |
|
|---|---|
OT_BORDER_AGENT_MODEL_NAME_SIZE (32)
|
Max size of Model Name string in
otBorderAgentTxtDataInfo. |
OT_BORDER_AGENT_RECORD_VERSION_SIZE (8)
|
Max size of Record Version string in
otBorderAgentTxtDataInfo. |
OT_BORDER_AGENT_THREAD_VERSION_SIZE (16)
|
Max size of Thread Version string in
otBorderAgentTxtDataInfo. |
OT_BORDER_AGENT_VENDOR_NAME_SIZE (32)
|
Max size of Vendor Name string in
otBorderAgentTxtDataInfo. |
Structs |
|
|---|---|
| otBorderAgentStateBitmap |
Represents Border Agent State Bitmap information. |
| otBorderAgentTxtDataInfo |
Represents parsed Border Agent TXT data. |
Enumerations
otBorderAgentAvailability
otBorderAgentAvailability
otBorderAgentConnMode
otBorderAgentConnMode
Represents the Connection Mode in a Border Agent State Bitmap.
otBorderAgentThreadIfState
otBorderAgentThreadIfState
Represents the Thread Interface Status in a Border Agent State Bitmap.
otBorderAgentThreadRole
otBorderAgentThreadRole
Typedefs
otBorderAgentAvailability
enum otBorderAgentAvailability otBorderAgentAvailability
Represents the Availability Status in a Border Agent State Bitmap.
otBorderAgentConnMode
enum otBorderAgentConnMode otBorderAgentConnMode
Represents the Connection Mode in a Border Agent State Bitmap.
otBorderAgentStateBitmap
struct otBorderAgentStateBitmap otBorderAgentStateBitmap
Represents Border Agent State Bitmap information.
otBorderAgentThreadIfState
enum otBorderAgentThreadIfState otBorderAgentThreadIfState
Represents the Thread Interface Status in a Border Agent State Bitmap.
otBorderAgentThreadRole
enum otBorderAgentThreadRole otBorderAgentThreadRole
Represents the Thread Role in a Border Agent State Bitmap.
otBorderAgentTxtDataInfo
struct otBorderAgentTxtDataInfo otBorderAgentTxtDataInfo
Represents parsed Border Agent TXT data.
The boolean flags indicate whether a specific field is present in the parsed TXT data.
Functions
otBorderAgentTxtDataParse
otError otBorderAgentTxtDataParse( const uint8_t *aTxtData, uint16_t aTxtDataLength, otBorderAgentTxtDataInfo *aInfo )
Parses a Border Agent's MeshCoP service TXT data.
Requires OPENTHREAD_CONFIG_BORDER_AGENT_TXT_DATA_PARSER_ENABLE.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||
| Return Values |
|
Macros
OT_BORDER_AGENT_MODEL_NAME_SIZE
OT_BORDER_AGENT_MODEL_NAME_SIZE (32)
Max size of Model Name string in otBorderAgentTxtDataInfo.
OT_BORDER_AGENT_RECORD_VERSION_SIZE
OT_BORDER_AGENT_RECORD_VERSION_SIZE (8)
Max size of Record Version string in otBorderAgentTxtDataInfo.
OT_BORDER_AGENT_THREAD_VERSION_SIZE
OT_BORDER_AGENT_THREAD_VERSION_SIZE (16)
Max size of Thread Version string in otBorderAgentTxtDataInfo.
OT_BORDER_AGENT_VENDOR_NAME_SIZE
OT_BORDER_AGENT_VENDOR_NAME_SIZE (32)
Max size of Vendor Name string in otBorderAgentTxtDataInfo.
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.