Server
This module includes functions to manage local network data with the OpenThread Server.
Summary
Functions |
|
|---|---|
otServerAddService(otInstance *aInstance, const otServiceConfig *aConfig)
|
Add a service configuration to the local network data.
|
otServerGetNetDataLocal(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength)
|
Provides a full or stable copy of the local Thread Network Data.
|
otServerGetNextService(otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig)
|
Gets the next service in the local Network Data.
|
otServerRegister(otInstance *aInstance)
|
Immediately register the local network data with the Leader.
|
otServerRemoveService(otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength)
|
Remove a service configuration from the local network data.
|
Functions
otServerAddService
otError otServerAddService( otInstance *aInstance, const otServiceConfig *aConfig )
Add a service configuration to the local network data.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||
| Return Values |
|
otServerRemoveService
otServerRegister
otServerGetNetDataLocal
otError otServerGetNetDataLocal( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
Provides a full or stable copy of the local Thread Network Data.
| Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
otServerGetNextService
otError otServerGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
Gets the next service in the local Network Data.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||
| Return Values |
|
otServerRegister
otError otServerRegister( otInstance *aInstance )
Immediately register the local network data with the Leader.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Return Values |
|
otServerAddService
otServerRemoveService
otServerRemoveService
otError otServerRemoveService( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength )
Remove a service configuration from the local network data.
| Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||||
| Return Values |
|
otServerAddService
otServerRegister
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.