الخادم
تتضمن هذه الوحدة وظائف لإدارة بيانات الشبكة المحلية باستخدام خادم OpenThread.
ملخّص
الدوال |
|
---|---|
otServerAddService(otInstance *aInstance, const otServiceConfig *aConfig)
|
أضف إعداد خدمة إلى بيانات الشبكة المحلية.
|
otServerGetNetDataLocal(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength)
|
توفّر نسخة كاملة أو ثابتة من بيانات شبكة Thread المحلية.
|
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
otServerEnrollment
otServerGetNetDataLocal
otError otServerGetNetDataLocal( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
توفّر نسخة كاملة أو ثابتة من بيانات شبكة Thread المحلية.
التفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المَعلمات |
|
otServerGetNextService
otError otServerGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
الحصول على الخدمة التالية في بيانات الشبكة المحلية.
التفاصيل | |||||||
---|---|---|---|---|---|---|---|
المَعلمات |
|
||||||
قيم الإرجاع |
|
سجلّ الخادم
otError otServerRegister( otInstance *aInstance )
سجِّل على الفور بيانات الشبكة المحلية لدى "قائد الحملة".
التفاصيل | |||
---|---|---|---|
المَعلمات |
|
||
قيم الإرجاع |
|
otServerAddService
otServerRemoveService
otServerRemoveService
otError otServerRemoveService( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength )
إزالة إعدادات خدمة من بيانات الشبكة المحلية
التفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المَعلمات |
|
||||||||
قيم الإرجاع |
|
otServerAddService
otServerEnrollment
الموارد
تبدأ مواضيع مراجع واجهة برمجة تطبيقات OpenThread من رمز المصدر، وهو متاح على GitHub. للحصول على مزيد من المعلومات أو للمساهمة في المستندات، يمكنك الاطّلاع على المراجع.