Serwer
Ten moduł zawiera funkcje do zarządzania danymi sieci lokalnej za pomocą serwera OpenThread Server.
Podsumowanie
Funkcje |
|
---|---|
otServerAddService(otInstance *aInstance, const otServiceConfig *aConfig)
|
Dodaj konfigurację usługi do danych sieci lokalnej.
|
otServerGetNetDataLocal(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength)
|
Ta metoda zapewnia pełną lub stabilną kopię danych lokalnych sieci sieciowych.
|
otServerGetNextService(otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig)
|
Ta funkcja pobiera następną usługę do przechowywania lokalnych danych sieciowych.
|
otServerRegister(otInstance *aInstance)
|
Natychmiast zarejestruj dane lidera sieci lokalnej.
|
otServerRemoveService(otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength)
|
Usuń konfigurację usługi z danych sieci lokalnej.
|
Funkcje
otServerAddService
otError otServerAddService( otInstance *aInstance, const otServiceConfig *aConfig )
Dodaj konfigurację usługi do danych sieci lokalnej.
Szczegóły | |||||||
---|---|---|---|---|---|---|---|
Parametry |
|
||||||
Zwracane wartości |
|
otServerRemoveService
otServerRegister
otServerGetNetDataLocal
otError otServerGetNetDataLocal( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
Ta metoda zapewnia pełną lub stabilną kopię danych lokalnych sieci sieciowych.
Szczegóły | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parametry |
|
otServerGetNextService
otError otServerGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
Ta funkcja pobiera następną usługę do przechowywania lokalnych danych sieciowych.
Szczegóły | |||||||
---|---|---|---|---|---|---|---|
Parametry |
|
||||||
Zwracane wartości |
|
otServerRegister
otError otServerRegister( otInstance *aInstance )
Natychmiast zarejestruj dane lidera sieci lokalnej.
Szczegóły | |||
---|---|---|---|
Parametry |
|
||
Zwracane wartości |
|
otServerAddService
otServerRemoveService
otServerRemoveService (usługa usuwanego serwera)
otError otServerRemoveService( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength )
Usuń konfigurację usługi z danych sieci lokalnej.
Szczegóły | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parametry |
|
||||||||
Zwracane wartości |
|
otServerAddService
otServerRegister
Zasoby
Tematy referencyjne interfejsu API OpenThread pochodzą z kodu źródłowego, który jest dostępny w GitHub. Jeśli chcesz dowiedzieć się więcej lub utworzyć dokumentację, zapoznaj się z materiałami.