جهاز التوجيه / القائد
تتضمن هذه الوحدة وظائف لأجهزة التوجيه الخيطية والقادة.
ملخص
التعداد | |
---|---|
otCacheEntryState | تعداد يحدد هذا التعداد حالة إدخال ذاكرة التخزين المؤقت لـ EID. |
otNeighborTableEvent { | تعداد يعرّف هذا التعداد الثوابت المستخدمة في otNeighborTableCallback للإشارة إلى ما إذا كان يتم إضافة أو إزالة طفل أو مجاور otNeighborTableCallback التوجيه. |
النوع | |
---|---|
otCacheEntryInfo | typedefstruct otCacheEntryInfo يمثل هذا الهيكل إدخال ذاكرة التخزين المؤقت EID. |
otCacheEntryIterator | typedefstruct otCacheEntryIterator يمثل هذا النوع مكررًا يستخدم للتكرار خلال إدخالات جدول ذاكرة التخزين المؤقت لـ EID. |
otCacheEntryState | typedefenum otCacheEntryState يحدد هذا التعداد حالة إدخال ذاكرة التخزين المؤقت لـ EID. |
otChildIp6AddressIterator | typedefuint16_t يُستخدم للتكرار عبر عناوين IPv6 لإدخال مؤشر ترابط تابع. |
otNeighborTableCallback )(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntryInfo) | typedefvoid(* تم استدعاء مؤشر الوظيفة هذا لإعلام أنه تتم إضافة طفل أو مجاور لجهاز التوجيه أو إزالته من جدول الجوار. |
المهام | |
---|---|
otThreadBecomeLeader ( otInstance *aInstance) | كن قائدًا وابدأ قسمًا جديدًا. |
otThreadBecomeRouter ( otInstance *aInstance) | حاول أن تصبح جهاز توجيه. |
otThreadGetChildInfoById ( otInstance *aInstance, uint16_t aChildId, otChildInfo *aChildInfo) | تحتفظ الوظيفة بالمعلومات التشخيصية للطفل المرفق بواسطة معرف الطفل أو RLOC16. |
otThreadGetChildInfoByIndex ( otInstance *aInstance, uint16_t aChildIndex, otChildInfo *aChildInfo) | تحتفظ الوظيفة بالمعلومات التشخيصية لطفل مرفق بواسطة فهرس الجدول الداخلي. |
otThreadGetChildNextIp6Address ( otInstance *aInstance, uint16_t aChildIndex, otChildIp6AddressIterator *aIterator, otIp6Address *aAddress) | تحصل هذه الوظيفة على عنوان IPv6 التالي (باستخدام مكرر) لطفل معين. |
otThreadGetContextIdReuseDelay ( otInstance *aInstance) | uint32_t احصل على المعلمة CONTEXT_ID_REUSE_DELAY المستخدمة في دور القائد. |
otThreadGetJoinerUdpPort ( otInstance *aInstance) | uint16_t احصل على Joiner UDP Port. |
otThreadGetLocalLeaderWeight ( otInstance *aInstance) | uint8_t احصل على وزن زعيم الخيط المستخدم عند العمل في دور القائد. |
otThreadGetMaxAllowedChildren ( otInstance *aInstance) | uint16_t احصل على الحد الأقصى لعدد الأطفال المسموح به حاليًا. |
otThreadGetMaxChildIpAddresses ( otInstance *aInstance) | uint8_t تحصل هذه الوظيفة على أقصى عدد من عناوين IP التي يمكن لكل طفل MTD تسجيلها مع هذا الجهاز باعتباره أحد الوالدين. |
otThreadGetMaxRouterId ( otInstance *aInstance) | uint8_t تقوم الوظيفة بإرجاع الحد الأقصى المسموح به لمعرف جهاز التوجيه. |
otThreadGetNetworkIdTimeout ( otInstance *aInstance) | uint8_t احصل على المعلمة NETWORK_ID_TIMEOUT المستخدمة في دور جهاز التوجيه. |
otThreadGetNextCacheEntry ( otInstance *aInstance, otCacheEntryInfo *aEntryInfo, otCacheEntryIterator *aIterator) | تحصل هذه الوظيفة على إدخال ذاكرة التخزين المؤقت التالي لـ EID (باستخدام مكرر). |
otThreadGetParentPriority ( otInstance *aInstance) | int8_t احصل على أولوية الوالدين المعينة. |
otThreadGetPreferredLeaderPartitionId ( otInstance *aInstance) | uint32_t احصل على معرف قسم زعيم الموضوع المفضل المستخدم عند التشغيل في دور القائد. |
otThreadGetPskc ( otInstance *aInstance) | const otPskc * احصل على الموضوع PSKc. |
otThreadGetRouterDowngradeThreshold ( otInstance *aInstance) | uint8_t احصل على المعلمة ROUTER_DOWNGRADE_THRESHOLD المستخدمة في دور جهاز التوجيه. |
otThreadGetRouterIdSequence ( otInstance *aInstance) | uint8_t احصل على تسلسل معرف جهاز التوجيه الحالي. |
otThreadGetRouterInfo ( otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo) | تحتفظ الوظيفة بالمعلومات التشخيصية لجهاز التوجيه الخيطي المحدد. |
otThreadGetRouterSelectionJitter ( otInstance *aInstance) | uint8_t احصل على المعلمة ROUTER_SELECTION_JITTER المستخدمة في دور REED / جهاز التوجيه. |
otThreadGetRouterUpgradeThreshold ( otInstance *aInstance) | uint8_t احصل على المعلمة ROUTER_UPGRADE_THRESHOLD المستخدمة في دور REED. |
otThreadIsRouterEligible ( otInstance *aInstance) | bool تشير هذه الطريقة إلى ما إذا كان الجهاز مؤهلاً لجهاز التوجيه أم لا. |
otThreadRegisterNeighborTableCallback ( otInstance *aInstance, otNeighborTableCallback aCallback) | void تسجل هذه الوظيفة وظيفة رد اتصال جدول الجوار. |
otThreadReleaseRouterId ( otInstance *aInstance, uint8_t aRouterId) | حرر معرف جهاز التوجيه الذي تم تخصيصه بواسطة الجهاز في دور القائد. |
otThreadSetContextIdReuseDelay ( otInstance *aInstance, uint32_t aDelay) | void قم بتعيين المعلمة CONTEXT_ID_REUSE_DELAY المستخدمة في دور القائد. |
otThreadSetJoinerUdpPort ( otInstance *aInstance, uint16_t aJoinerUdpPort) | اضبط Joiner UDP Port. |
otThreadSetLocalLeaderWeight ( otInstance *aInstance, uint8_t aWeight) | void اضبط وزن زعيم الخيط المستخدم عند التشغيل في دور القائد. |
otThreadSetMaxAllowedChildren ( otInstance *aInstance, uint16_t aMaxChildren) | قم بتعيين الحد الأقصى لعدد الأطفال المسموح به حاليًا. |
otThreadSetMaxChildIpAddresses ( otInstance *aInstance, uint8_t aMaxIpAddresses) | تقوم هذه الوظيفة بتعيين / استعادة الحد الأقصى لعدد عناوين IP التي يجوز لكل طفل MTD تسجيلها مع هذا الجهاز باعتباره أحد الوالدين. |
otThreadSetNetworkIdTimeout ( otInstance *aInstance, uint8_t aTimeout) | void قم بتعيين معلمة NETWORK_ID_TIMEOUT المستخدمة في دور القائد. |
otThreadSetParentPriority ( otInstance *aInstance, int8_t aParentPriority) | قم بتعيين أولوية الأصل. |
otThreadSetPreferredLeaderPartitionId ( otInstance *aInstance, uint32_t aPartitionId) | void قم بتعيين معرف قسم زعيم الموضوع المفضل المستخدم عند التشغيل في دور القائد. |
otThreadSetPreferredRouterId ( otInstance *aInstance, uint8_t aRouterId) | قم بتعيين معرف جهاز التوجيه المفضل. |
otThreadSetPskc ( otInstance *aInstance, const otPskc *aPskc) | اضبط الموضوع PSKc. |
otThreadSetRouterDowngradeThreshold ( otInstance *aInstance, uint8_t aThreshold) | void قم بتعيين المعلمة ROUTER_DOWNGRADE_THRESHOLD المستخدمة في دور القائد. |
otThreadSetRouterEligible ( otInstance *aInstance, bool aEligible) | تحدد هذه الوظيفة ما إذا كان الجهاز مؤهلاً لجهاز التوجيه أم لا. |
otThreadSetRouterSelectionJitter ( otInstance *aInstance, uint8_t aRouterJitter) | void قم بتعيين المعلمة ROUTER_SELECTION_JITTER المستخدمة في دور REED / جهاز التوجيه. |
otThreadSetRouterUpgradeThreshold ( otInstance *aInstance, uint8_t aThreshold) | void قم بتعيين المعلمة ROUTER_UPGRADE_THRESHOLD المستخدمة في دور القائد. |
otThreadSetSteeringData ( otInstance *aInstance, const otExtAddress *aExtAddress) | void ضبط بيانات التوجيه خارج النطاق. |
الهياكل | |
---|---|
otCacheEntryInfo | يمثل هذا الهيكل إدخال ذاكرة التخزين المؤقت EID. |
otCacheEntryIterator | يمثل هذا النوع مكررًا يستخدم للتكرار خلال إدخالات جدول ذاكرة التخزين المؤقت لـ EID. |
otChildInfo | تحتوي هذه البنية على معلومات تشخيصية لـ Thread Child. |
otNeighborTableEntryInfo | يمثل هذا النوع معلومات إدخال جدول الجوار (تابع أو جهاز توجيه) ويتم استخدامه |
التعداد
otCacheEntryState
otCacheEntryState
يحدد هذا التعداد حالة إدخال ذاكرة التخزين المؤقت لـ EID.
otNeighborTableEvent
otNeighborTableEvent
يعرّف هذا التعداد الثوابت المستخدمة في otNeighborTableCallback
للإشارة إلى ما إذا كان يتم إضافة أو إزالة طفل أو مجاور otNeighborTableCallback
التوجيه.
النوع
otCacheEntryInfo
struct otCacheEntryInfo otCacheEntryInfo
يمثل هذا الهيكل إدخال ذاكرة التخزين المؤقت EID.
otCacheEntryIterator
struct otCacheEntryIterator otCacheEntryIterator
يمثل هذا النوع مكررًا يستخدم للتكرار خلال إدخالات جدول ذاكرة التخزين المؤقت لـ EID.
لتهيئة المكرر والبدء من الإدخال الأول في جدول ذاكرة التخزين المؤقت ، اضبط جميع حقوله في البنية على صفر (على سبيل المثال ، memset
iterator إلى الصفر).
otCacheEntryState
enum otCacheEntryState otCacheEntryState
يحدد هذا التعداد حالة إدخال ذاكرة التخزين المؤقت لـ EID.
otChildIp6AddressIterator
uint16_t otChildIp6AddressIterator
يُستخدم للتكرار عبر عناوين IPv6 لإدخال مؤشر ترابط تابع.
otNeighborTableCallback
void(* otNeighborTableCallback)(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntryInfo)
تم استدعاء مؤشر الوظيفة هذا لإعلام أنه تتم إضافة طفل أو مجاور لجهاز التوجيه إلى جدول الجوار أو إزالته منه.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
المهام
otThreadBecomeLeader
otError otThreadBecomeLeader( otInstance *aInstance )
كن قائدًا وابدأ قسمًا جديدًا.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadBecomeRouter
otError otThreadBecomeRouter( otInstance *aInstance )
حاول أن تصبح جهاز توجيه.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadGetChildInfoById
otError otThreadGetChildInfoById( otInstance *aInstance, uint16_t aChildId, otChildInfo *aChildInfo )
تحتفظ الوظيفة بالمعلومات التشخيصية للطفل المرفق بواسطة معرف الطفل أو RLOC16.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otThreadGetChildInfoByIndex
otError otThreadGetChildInfoByIndex( otInstance *aInstance, uint16_t aChildIndex, otChildInfo *aChildInfo )
تحتفظ الوظيفة بالمعلومات التشخيصية لطفل مرفق بواسطة فهرس الجدول الداخلي.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otGetMaxAllowedChildren
otThreadGetChildNextIp6Address
otError otThreadGetChildNextIp6Address( otInstance *aInstance, uint16_t aChildIndex, otChildIp6AddressIterator *aIterator, otIp6Address *aAddress )
تحصل هذه الوظيفة على عنوان IPv6 التالي (باستخدام مكرر) لطفل معين.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||
إرجاع القيم |
|
otThreadGetChildInfoByIndex
otThreadGetContextIdReuseDelay
uint32_t otThreadGetContextIdReuseDelay( otInstance *aInstance )
احصل على المعلمة CONTEXT_ID_REUSE_DELAY المستخدمة في دور القائد.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة CONTEXT_ID_REUSE_DELAY. |
otThreadSetContextIdReuseDelay
otThreadGetJoinerUdport
uint16_t otThreadGetJoinerUdpPort( otInstance *aInstance )
احصل على Joiner UDP Port.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | رقم منفذ UDP. |
otThreadSetJoinerUdport
otThreadGetLocalLeader الوزن
uint8_t otThreadGetLocalLeaderWeight( otInstance *aInstance )
احصل على وزن زعيم الخيط المستخدم عند العمل في دور القائد.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة وزن زعيم الخيط. |
otThreadSetLeader الوزن
otThreadGetMaxAllowedChildren
uint16_t otThreadGetMaxAllowedChildren( otInstance *aInstance )
احصل على الحد الأقصى لعدد الأطفال المسموح به حاليًا.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | الحد الأقصى لعدد الأطفال المسموح به حاليًا. |
otThreadSetMaxAllowedChildren
otThreadGetMaxChildIpAddresses
uint8_t otThreadGetMaxChildIpAddresses( otInstance *aInstance )
تحصل هذه الوظيفة على أقصى عدد من عناوين IP التي يمكن لكل طفل MTD تسجيلها مع هذا الجهاز باعتباره أحد الوالدين.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | الحد الأقصى لعدد عناوين IP التي يمكن لكل طفل MTD تسجيلها مع هذا الجهاز باعتباره أحد الوالدين. |
otThreadSetMaxChildIpAddresses
otThreadGetMaxRouterId
uint8_t otThreadGetMaxRouterId( otInstance *aInstance )
تقوم الوظيفة بإرجاع الحد الأقصى المسموح به لمعرف جهاز التوجيه.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | معرف جهاز التوجيه الأقصى المسموح به. |
otThreadGetNetworkIdTimeout
uint8_t otThreadGetNetworkIdTimeout( otInstance *aInstance )
احصل على المعلمة NETWORK_ID_TIMEOUT المستخدمة في دور جهاز التوجيه.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة NETWORK_ID_TIMEOUT. |
otThreadSetNetworkIdTimeout
otThreadGetNextCacheEntry
otError otThreadGetNextCacheEntry( otInstance *aInstance, otCacheEntryInfo *aEntryInfo, otCacheEntryIterator *aIterator )
تحصل هذه الوظيفة على إدخال ذاكرة التخزين المؤقت التالي لـ EID (باستخدام مكرر).
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otThreadGetParent الأولوية
int8_t otThreadGetParentPriority( otInstance *aInstance )
احصل على أولوية الوالدين المعينة.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة الأولوية الأصل المعينة ، -2 تعني عدم تعيينها. |
otThreadSetParent الأولوية
otThreadGetPreferredLeaderPartitionId
uint32_t otThreadGetPreferredLeaderPartitionId( otInstance *aInstance )
احصل على معرف قسم زعيم الموضوع المفضل المستخدم عند التشغيل في دور القائد.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة معرف قسم زعيم الخيط. |
otThreadGetPskc
const otPskc * otThreadGetPskc( otInstance *aInstance )
احصل على الموضوع PSKc.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | مؤشر إلى Thread PSKc |
otThreadSetPskc
otThreadGetRouterDowngradeThreshold
uint8_t otThreadGetRouterDowngradeThreshold( otInstance *aInstance )
احصل على المعلمة ROUTER_DOWNGRADE_THRESHOLD المستخدمة في دور جهاز التوجيه.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة ROUTER_DOWNGRADE_THRESHOLD. |
otThreadSetRouterDowngradeThreshold
otThreadGetRouterIdSequence
uint8_t otThreadGetRouterIdSequence( otInstance *aInstance )
احصل على تسلسل معرف جهاز التوجيه الحالي.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | تسلسل معرف جهاز التوجيه. |
otThreadGetRouterInfo
otError otThreadGetRouterInfo( otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo )
تحتفظ الوظيفة بالمعلومات التشخيصية لجهاز توجيه خيط معين.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otThreadGetRouterSelectionJitter
uint8_t otThreadGetRouterSelectionJitter( otInstance *aInstance )
احصل على المعلمة ROUTER_SELECTION_JITTER المستخدمة في دور REED / جهاز التوجيه.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة ROUTER_SELECTION_JITTER. |
otThreadSetRouterSelectionJitter
otThreadGetRouterUpgradeThreshold
uint8_t otThreadGetRouterUpgradeThreshold( otInstance *aInstance )
احصل على المعلمة ROUTER_UPGRADE_THRESHOLD المستخدمة في دور REED.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قيمة ROUTER_UPGRADE_THRESHOLD. |
otThreadSetRouterUpgradeThreshold
otThreadIsRouter مؤهل
bool otThreadIsRouterEligible( otInstance *aInstance )
تشير هذه الطريقة إلى ما إذا كان الجهاز مؤهلاً لجهاز التوجيه أم لا.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadRegisterNeighborTableCallback
void otThreadRegisterNeighborTableCallback( otInstance *aInstance, otNeighborTableCallback aCallback )
تسجل هذه الوظيفة وظيفة رد اتصال جدول الجوار.
سيتم استدعاء رد الاتصال المقدم (إذا لم يكن NULL) عندما تتم إضافة / إزالة إدخال فرعي أو إدخال مجاور لجهاز التوجيه إلى / من جدول الجوار. ستحل الاستدعاءات اللاحقة لهذه الطريقة محل رد الاتصال السابق. لاحظ أنه تم استدعاء رد الاتصال هذا أثناء تحديث جدول الجار / التابع ودائمًا قبل otStateChangedCallback
.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadReleaseRouterId
otError otThreadReleaseRouterId( otInstance *aInstance, uint8_t aRouterId )
حرر معرف جهاز التوجيه الذي تم تخصيصه بواسطة الجهاز في دور القائد.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||
إرجاع القيم |
|
otThreadSetContextIdReuseDelay
void otThreadSetContextIdReuseDelay( otInstance *aInstance, uint32_t aDelay )
قم بتعيين المعلمة CONTEXT_ID_REUSE_DELAY المستخدمة في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetContextIdReuseDelay
otThreadSetJoinerUdport
otError otThreadSetJoinerUdpPort( otInstance *aInstance, uint16_t aJoinerUdpPort )
اضبط Joiner UDP Port.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadGetJoinerUdport
otThreadSetLocalLeader الوزن
void otThreadSetLocalLeaderWeight( otInstance *aInstance, uint8_t aWeight )
اضبط وزن زعيم الخيط المستخدم عند التشغيل في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetLeader الوزن
otThreadSetMaxAllowedChildren
otError otThreadSetMaxAllowedChildren( otInstance *aInstance, uint16_t aMaxChildren )
قم بتعيين الحد الأقصى لعدد الأطفال المسموح به حاليًا.
يمكن تعيين هذه المعلمة فقط عند إيقاف تشغيل بروتوكول الموضوع.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otThreadGetMaxAllowedChildren
otThreadSetMaxChildIpAddresses
otError otThreadSetMaxChildIpAddresses( otInstance *aInstance, uint8_t aMaxIpAddresses )
تقوم هذه الوظيفة بتعيين / استعادة الحد الأقصى لعدد عناوين IP التي يجوز لكل طفل MTD تسجيلها مع هذا الجهاز باعتباره أحد الوالدين.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadGetMaxChildIpAddresses
otThreadSetNetworkIdTimeout
void otThreadSetNetworkIdTimeout( otInstance *aInstance, uint8_t aTimeout )
قم بتعيين معلمة NETWORK_ID_TIMEOUT المستخدمة في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetNetworkIdTimeout
otThreadSetParent الأولوية
otError otThreadSetParentPriority( otInstance *aInstance, int8_t aParentPriority )
قم بتعيين أولوية الأصل.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadGetParent الأولوية
otThreadSetPreferredLeaderPartitionId
void otThreadSetPreferredLeaderPartitionId( otInstance *aInstance, uint32_t aPartitionId )
قم بتعيين معرف قسم زعيم الموضوع المفضل المستخدم عند التشغيل في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadSetPreferredRouterId
otError otThreadSetPreferredRouterId( otInstance *aInstance, uint8_t aRouterId )
قم بتعيين معرف جهاز التوجيه المفضل.
عندما تصبح العقدة موجهًا / قائدًا ، تحاول استخدام معرف جهاز التوجيه هذا. إذا لم يتم تعيين معرف جهاز التوجيه المفضل أو إذا تعذر استخدامه ، فسيتم اختيار معرف جهاز التوجيه الذي تم إنشاؤه عشوائيًا. يمكن تعيين هذه الخاصية فقط عندما يكون دور الجهاز إما مفصولاً أو معطلاً.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadSetPskc
otError otThreadSetPskc( otInstance *aInstance, const otPskc *aPskc )
اضبط الموضوع PSKc.
ستنجح هذه الوظيفة فقط عندما يتم تعطيل بروتوكولات الموضوع. سيؤدي الاستدعاء الناجح لهذه الوظيفة أيضًا إلى إبطال مجموعات البيانات التشغيلية النشطة والمعلقة في الذاكرة غير المتطايرة.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadGetPskc
otThreadSetRouterDowngradeThreshold
void otThreadSetRouterDowngradeThreshold( otInstance *aInstance, uint8_t aThreshold )
قم بتعيين المعلمة ROUTER_DOWNGRADE_THRESHOLD المستخدمة في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetRouterDowngradeThreshold
otThreadSetRouter مؤهل
otError otThreadSetRouterEligible( otInstance *aInstance, bool aEligible )
تحدد هذه الوظيفة ما إذا كان الجهاز مؤهلاً لجهاز التوجيه أم لا.
إذا كان aEligible
خاطئًا وكان الجهاز يعمل حاليًا كموجه ، aEligible
هذه المكالمة في فصل الجهاز ومحاولة إعادة توصيله كطفل.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otThreadSetRouterSelectionJitter
void otThreadSetRouterSelectionJitter( otInstance *aInstance, uint8_t aRouterJitter )
قم بتعيين المعلمة ROUTER_SELECTION_JITTER المستخدمة في دور REED / جهاز التوجيه.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetRouterSelectionJitter
otThreadSetRouterUpgradeThreshold
void otThreadSetRouterUpgradeThreshold( otInstance *aInstance, uint8_t aThreshold )
قم بتعيين المعلمة ROUTER_UPGRADE_THRESHOLD المستخدمة في دور القائد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otThreadGetRouterUpgradeThreshold
otThreadSetSteeringData
void otThreadSetSteeringData( otInstance *aInstance, const otExtAddress *aExtAddress )
ضبط بيانات التوجيه خارج النطاق.
يجب تعيين خيار التكوين OPENTHREAD_CONFIG_MLE_STEERING_DATA_SET_OOB_ENABLE
لتمكين إعداد بيانات التوجيه خارج النطاق.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
وحدات الماكرو
OT_CHILD_IP6_ADDRESS_ITERATOR_INIT
OT_CHILD_IP6_ADDRESS_ITERATOR_INIT 0
مُهيئ لـ otChildIP6AddressIterator.