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