الخادم
تتضمن هذه الوحدة وظائف لإدارة بيانات الشبكة المحلية باستخدام خادم OpenThread.
ملخص
المهام | |
---|---|
otServerAddService ( otInstance *aInstance, const otServiceConfig *aConfig) | أضف تكوين خدمة إلى بيانات الشبكة المحلية. |
otServerGetNetDataLocal ( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength) | توفر هذه الطريقة نسخة كاملة أو ثابتة من بيانات شبكة مؤشر الترابط المحلية. |
otServerGetNextService ( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig) | تحصل هذه الوظيفة على الخدمة التالية في بيانات الشبكة المحلية. |
otServerRegister ( otInstance *aInstance) | قم على الفور بتسجيل بيانات الشبكة المحلية مع القائد. |
otServerRemoveService ( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength) | قم بإزالة تكوين الخدمة من بيانات الشبكة المحلية. |
المهام
otServerAddService
otError otServerAddService( otInstance *aInstance, const otServiceConfig *aConfig )
أضف تكوين خدمة إلى بيانات الشبكة المحلية.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otServerRemoveService
otServer التسجيل
otServerGetNetDataLocal
otError otServerGetNetDataLocal( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
توفر هذه الطريقة نسخة كاملة أو ثابتة من بيانات شبكة مؤشر الترابط المحلية.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
|
otServerGetNextService
otError otServerGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
تحصل هذه الوظيفة على الخدمة التالية في بيانات الشبكة المحلية.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otServer التسجيل
otError otServerRegister( otInstance *aInstance )
قم على الفور بتسجيل بيانات الشبكة المحلية مع القائد.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
إرجاع القيم |
|
otServerAddService
otServerRemoveService
otServerRemoveService
otError otServerRemoveService( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength )
قم بإزالة تكوين الخدمة من بيانات الشبكة المحلية.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||
إرجاع القيم |
|
otServerAddService
otServer التسجيل