عمومی
این ماژول شامل توابعی برای همه نقش های Thread است.
خلاصه
ناشر دادههای شبکه مکانیسمهایی را برای محدود کردن تعداد ورودیهای مشابه سرویس و/یا پیشوند (پیشوند روی مش یا مسیر خارجی) در دادههای شبکه موضوعی با نظارت بر دادههای شبکه و مدیریت زمان افزودن یا حذف ورودیها فراهم میکند.
همه توابع در این ماژول نیاز به فعال کردن OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE
دارند.
Typedefs | |
---|---|
otBorderRouterConfig | typedefstruct otBorderRouterConfig این ساختار یک پیکربندی Border Router را نشان می دهد. |
otDetachGracefullyCallback )(void *aContext) | typedefvoid(* این فراخوانی به برنامه اطلاع می دهد که فرآیند جداسازی به پایان رسیده است. |
otExternalRouteConfig | typedefstruct otExternalRouteConfig این ساختار یک پیکربندی مسیر خارجی را نشان می دهد. |
otIpCounters | typedefstruct otIpCounters این ساختار نشان دهنده شمارنده های سطح IP است. |
otLeaderData | typedefstruct otLeaderData این ساختار نشان دهنده داده های Thread Leader است. |
otLinkModeConfig | typedefstruct otLinkModeConfig این ساختار یک پیکربندی MLE Link Mode را نشان می دهد. |
otMleCounters | typedefstruct otMleCounters این ساختار نشان دهنده شمارنده های Thread MLE است. |
otNeighborInfoIterator | typedefint16_t برای تکرار از طریق جدول همسایه استفاده می شود. |
otNetDataDnsSrpServicePublisherCallback )(otNetDataPublisherEvent aEvent, void *aContext) | typedefvoid(* این نوع نشانگر تابع، پاسخ تماس مورد استفاده برای اطلاع از اضافه شدن یا حذف ورودی "سرویس DNS/SRP" به داده شبکه موضوعی را مشخص می کند. |
otNetDataPrefixPublisherCallback )(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext) | typedefvoid(* این نوع نشانگر تابع، پاسخ تماس مورد استفاده برای اطلاع از اضافه شدن یا حذف یک پیشوند (روی مش یا مسیر خارجی) به داده شبکه موضوعی را مشخص می کند. |
otNetDataPublisherEvent | typedef این شمارش رویدادهای گزارش شده از تماس های ناشر را نشان می دهد. |
otNetworkDataIterator | typedefuint32_t برای تکرار از طریق اطلاعات شبکه داده استفاده می شود. |
otNetworkDiagChildEntry | typedefstruct otNetworkDiagChildEntry این ساختار یک ورودی جدول کودک تشخیصی شبکه را نشان می دهد. |
otNetworkDiagConnectivity | typedefstruct otNetworkDiagConnectivity این ساختار یک مقدار Network Diagnostic Connectivity را نشان می دهد. |
otNetworkDiagIterator | typedefuint16_t برای تکرار از طریق Network Diagnostic TLV استفاده می شود. |
otNetworkDiagMacCounters | typedefstruct otNetworkDiagMacCounters این ساختار یک مقدار Network Diagnostic Mac Counters را نشان می دهد. |
otNetworkDiagRoute | typedefstruct otNetworkDiagRoute این ساختار یک مقدار TLV مسیر تشخیصی شبکه را نشان می دهد. |
otNetworkDiagRouteData | typedefstruct otNetworkDiagRouteData این ساختار یک داده مسیر تشخیصی شبکه را نشان می دهد. |
otNetworkDiagTlv | typedefstruct otNetworkDiagTlv این ساختار یک TLV تشخیصی شبکه را نشان می دهد. |
otReceiveDiagnosticGetCallback )(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext) | typedefvoid(* این نشانگر عملکرد زمانی فراخوانی می شود که پاسخ دریافت تشخیصی شبکه دریافت شود. |
otRoutePreference | typedefenum otRoutePreference |
otServerConfig | typedefstruct otServerConfig این ساختار یک پیکربندی سرور را نشان می دهد. |
otServiceConfig | typedefstruct otServiceConfig این ساختار یک پیکربندی سرویس را نشان می دهد. |
otThreadAnycastLocatorCallback )(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16) | typedefvoid(* این نوع نشانگر تابع، فراخوانی را برای اطلاع از نتیجه درخواست otThreadLocateAnycastDestination() تعریف می کند. |
otThreadDiscoveryRequestCallback )(const otThreadDiscoveryRequestInfo *aInfo, void *aContext) | typedefvoid(* هر بار که یک پیام درخواست کشف MLE دریافت می شود، این نشانگر تابع فراخوانی می شود. |
otThreadDiscoveryRequestInfo | typedefstruct otThreadDiscoveryRequestInfo این ساختار دادههای درخواست کشف موضوع را نشان میدهد. |
otThreadParentResponseCallback )(otThreadParentResponseInfo *aInfo, void *aContext) | typedefvoid(* هر بار که پیام پاسخ والدین MLE دریافت می شود، این نشانگر تابع فراخوانی می شود. |
otThreadParentResponseInfo | typedefstruct otThreadParentResponseInfo این ساختار دادههای MLE Parent Response را نشان میدهد. |
کارکرد | |
---|---|
otNetDataContainsOmrPrefix ( otInstance *aInstance, const otIp6Prefix *aPrefix) | bool این تابع بررسی می کند که آیا یک پیشوند داده شده می تواند به عنوان یک پیشوند معتبر OMR عمل کند و همچنین داده های شبکه رهبر حاوی این پیشوند است. |
otNetDataGet ( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength) | این روش یک کپی کامل یا پایدار از داده شبکه موضوعی پارتیشن را ارائه می دهد. |
otNetDataGetNextOnMeshPrefix ( otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig) | این تابع پیشوند On Mesh بعدی را در داده های شبکه پارتیشن دریافت می کند. |
otNetDataGetNextRoute ( otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig) | این تابع مسیر خارجی بعدی را در داده های شبکه پارتیشن دریافت می کند. |
otNetDataGetNextService ( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig) | این تابع سرویس بعدی را در داده های شبکه پارتیشن دریافت می کند. |
otNetDataGetStableVersion ( otInstance *aInstance) | uint8_t نسخه Stable Network Data را دریافت کنید. |
otNetDataGetVersion ( otInstance *aInstance) | uint8_t نسخه Network Data را دریافت کنید. |
otNetDataIsDnsSrpServiceAdded ( otInstance *aInstance) | bool این تابع نشان می دهد که آیا در حال حاضر ورودی "DNS/SRP Service" به داده شبکه Thread اضافه شده است یا خیر. |
otNetDataIsPrefixAdded ( otInstance *aInstance, const otIp6Prefix *aPrefix) | bool این تابع نشان می دهد که آیا در حال حاضر یک پیشوند منتشر شده (روی مش یا مسیر خارجی) به داده شبکه موضوع اضافه شده است یا خیر. |
otNetDataPublishDnsSrpServiceAnycast ( otInstance *aInstance, uint8_t aSequenceNUmber) | void این تابع درخواست "DNS/SRP Service Anycast Address" می کند تا در Thread Network Data منتشر شود. |
otNetDataPublishDnsSrpServiceUnicast ( otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort) | void این تابع درخواست "DNS/SRP Service Unicast Address" می کند تا در Thread Network Data منتشر شود. |
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid ( otInstance *aInstance, uint16_t aPort) | void این تابع درخواست "DNS/SRP Service Unicast Address" می کند تا در Thread Network Data منتشر شود. |
otNetDataPublishExternalRoute ( otInstance *aInstance, const otExternalRouteConfig *aConfig) | این تابع یک پیشوند مسیر خارجی را درخواست می کند تا در Thread Network Data منتشر شود. |
otNetDataPublishOnMeshPrefix ( otInstance *aInstance, const otBorderRouterConfig *aConfig) | این تابع یک پیشوند روی مش را درخواست می کند تا در Thread Network Data منتشر شود. |
otNetDataSetDnsSrpServicePublisherCallback ( otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext) | void این تابع یک تماس برگشتی برای اطلاع از زمانی که یک "سرویس DNS/SRP" منتشر شده واقعاً به داده شبکه Thread اضافه یا از آن حذف می شود، تنظیم می کند. |
otNetDataSetPrefixPublisherCallback ( otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext) | void این تابع یک تماس برگشتی برای اطلاع از زمانی که یک ورودی پیشوند منتشر شده واقعاً به داده شبکه موضوع اضافه یا از آن حذف شده است تنظیم می کند. |
otNetDataSteeringDataCheckJoiner ( otInstance *aInstance, const otExtAddress *aEui64) | بررسی کنید که آیا اطلاعات فرمان شامل Joiner است یا خیر. |
otNetDataSteeringDataCheckJoinerWithDiscerner ( otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner) | بررسی کنید که آیا دادههای فرمان شامل یک Joiner با مقدار تشخیص داده شده است یا خیر. |
otNetDataUnpublishDnsSrpService ( otInstance *aInstance) | void هر ورودی سرویس DNS/SRP (Anycast یا Unicast) که قبلاً اضافه شده است را از داده شبکه Thread لغو انتشار می کند. |
otNetDataUnpublishPrefix ( otInstance *aInstance, const otIp6Prefix *aPrefix) | پیشوند On-Mesh یا External Route منتشر شده قبلی را لغو انتشار می کند. |
otThreadBecomeChild ( otInstance *aInstance) | در کودکی سعی کنید دوباره وصل شوید. |
otThreadBecomeDetached ( otInstance *aInstance) | از شبکه Thread جدا شوید. |
otThreadDetachGracefully ( otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext) | این تابع به سایر گره های شبکه (در صورت وجود) اطلاع می دهد و سپس عملیات پروتکل Thread را متوقف می کند. |
otThreadDeviceRoleToString ( otDeviceRole aRole) | const char * نقش دستگاه را به رشته قابل خواندن توسط انسان تبدیل کنید. |
otThreadDiscover ( otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext) | این تابع یک اسکن Thread Discovery را شروع می کند. |
otThreadGetChildTimeout ( otInstance *aInstance) | uint32_t از Timeout Thread Child هنگام کار در نقش Child استفاده کنید. |
otThreadGetDeviceRole ( otInstance *aInstance) | نقش دستگاه را دریافت کنید. |
otThreadGetDomainName ( otInstance *aInstance) | const char * نام دامنه Thread را دریافت کنید. |
otThreadGetExtendedPanId ( otInstance *aInstance) | const otExtendedPanId * IEEE 802.15.4 Extended PAN ID را دریافت کنید. |
otThreadGetFixedDuaInterfaceIdentifier ( otInstance *aInstance) | const otIp6InterfaceIdentifier * شناسه رابط را که به صورت دستی برای آدرس Unicast دامنه Thread مشخص شده است دریافت کنید. |
otThreadGetIp6Counters ( otInstance *aInstance) | const otIpCounters * شمارنده های IPv6 را دریافت کنید. |
otThreadGetKeySequenceCounter ( otInstance *aInstance) | uint32_t thrKeySequenceCounter را دریافت کنید. |
otThreadGetKeySwitchGuardTime ( otInstance *aInstance) | uint32_t thrKeySwitchGuardTime را دریافت کنید. |
otThreadGetLeaderData ( otInstance *aInstance, otLeaderData *aLeaderData) | این تابع داده های Thread Leader را دریافت می کند. |
otThreadGetLeaderRloc ( otInstance *aInstance, otIp6Address *aLeaderRloc) | این تابع یک اشاره گر را به RLOC لیدر برمی گرداند. |
otThreadGetLeaderRouterId ( otInstance *aInstance) | uint8_t شناسه روتر رهبر را دریافت کنید. |
otThreadGetLeaderWeight ( otInstance *aInstance) | uint8_t وزن رهبر را بدست آورید. |
otThreadGetLinkLocalAllThreadNodesMulticastAddress ( otInstance *aInstance) | const otIp6Address * این تابع آدرس چندپخشی Thread Link-Local All Thread Nodes را برمی گرداند. |
otThreadGetLinkLocalIp6Address ( otInstance *aInstance) | const otIp6Address * این تابع آدرس IPv6 محلی پیوند Thread را برمی گرداند. |
otThreadGetLinkMode ( otInstance *aInstance) | پیکربندی MLE Link Mode را دریافت کنید. |
otThreadGetMeshLocalEid ( otInstance *aInstance) | const otIp6Address * این تابع یک اشاره گر را به آدرس EID محلی Mesh برمی گرداند. |
otThreadGetMeshLocalPrefix ( otInstance *aInstance) | const otMeshLocalPrefix * این تابع یک اشاره گر را به پیشوند محلی Mesh برمی گرداند. |
otThreadGetMleCounters ( otInstance *aInstance) | const otMleCounters * شمارنده های Thread MLE را دریافت کنید. |
otThreadGetNetworkKey ( otInstance *aInstance, otNetworkKey *aNetworkKey) | void کلید شبکه Thread را دریافت کنید. |
otThreadGetNetworkKeyRef ( otInstance *aInstance) | کلید otNetworkKeyRef برای Thread Network را دریافت کنید. |
otThreadGetNetworkName ( otInstance *aInstance) | const char * نام شبکه Thread را دریافت کنید. |
otThreadGetNextDiagnosticTlv (const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv) | این تابع TLV بعدی شبکه تشخیصی را در پیام دریافت می کند. |
otThreadGetNextNeighborInfo ( otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo) | این تابع اطلاعات همسایه بعدی را دریافت می کند. |
otThreadGetParentAverageRssi ( otInstance *aInstance, int8_t *aParentRssi) | تابع میانگین RSSI را برای Thread Parent بازیابی می کند. |
otThreadGetParentInfo ( otInstance *aInstance, otRouterInfo *aParentInfo) | این تابع اطلاعات تشخیصی یک روتر Thread را به عنوان والد بازیابی می کند. |
otThreadGetParentLastRssi ( otInstance *aInstance, int8_t *aLastRssi) | تابع RSSI آخرین بسته را از Thread Parent بازیابی می کند. |
otThreadGetPartitionId ( otInstance *aInstance) | uint32_t شناسه پارتیشن را دریافت کنید. |
otThreadGetRealmLocalAllThreadNodesMulticastAddress ( otInstance *aInstance) | const otIp6Address * این تابع آدرس چندپخشی Thread Realm-Local All Thread Nodes را برمی گرداند. |
otThreadGetRloc ( otInstance *aInstance) | const otIp6Address * این تابع یک اشاره گر را به آدرس Thread Routing Locator (RLOC) برمی گرداند. |
otThreadGetRloc16 ( otInstance *aInstance) | uint16_t RLOC16 را دریافت کنید. |
otThreadGetServiceAloc ( otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc) | این تابع سرویس ALOC را برای شناسه سرویس داده شده بازیابی می کند. |
otThreadGetVersion (void) | uint16_t این تابع نسخه پروتکل Thread را دریافت می کند. |
otThreadIsAnycastLocateInProgress ( otInstance *aInstance) | bool این تابع نشان می دهد که آیا درخواست مکان یابی anycast در حال حاضر در حال انجام است یا خیر. |
otThreadIsDiscoverInProgress ( otInstance *aInstance) | bool این تابع تعیین می کند که آیا کشف موضوع MLE در حال انجام است یا خیر. |
otThreadIsSingleton ( otInstance *aInstance) | bool این تابع نشان می دهد که آیا یک گره تنها روتر در شبکه است یا خیر. |
otThreadLocateAnycastDestination ( otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext) | این تابع درخواست می کند که نزدیکترین مقصد یک آدرس anycast داده شده قرار گیرد. |
otThreadRegisterParentResponseCallback ( otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext) | void این تابع برای دریافت داده های MLE Parent Response یک تماس برگشتی ثبت می کند. |
otThreadResetIp6Counters ( otInstance *aInstance) | void شمارنده های IPv6 را بازنشانی کنید. |
otThreadResetMleCounters ( otInstance *aInstance) | void شمارنده های Thread MLE را بازنشانی کنید. |
otThreadSendAddressNotification ( otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid) | void این تابع یک پیام اعلان آدرس فعال (ADDR_NTF.ntf) ارسال می کند. |
otThreadSendDiagnosticGet ( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext) | درخواست دریافت تشخیصی شبکه را ارسال کنید. |
otThreadSendDiagnosticReset ( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount) | یک درخواست بازنشانی تشخیصی شبکه ارسال کنید. |
otThreadSendProactiveBackboneNotification ( otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction) | این تابع یک پیام Backbone Proactive Notification (PRO_BB.ntf) را در پیوند Backbone ارسال می کند. |
otThreadSetChildTimeout ( otInstance *aInstance, uint32_t aTimeout) | void زمان استفاده از Thread Child Timeout را هنگام کار در نقش Child تنظیم کنید. |
otThreadSetDiscoveryRequestCallback ( otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext) | void این تابع یک تماس برگشتی را برای دریافت داده های درخواست کشف MLE تنظیم می کند. |
otThreadSetDomainName ( otInstance *aInstance, const char *aDomainName) | نام دامنه Thread را تنظیم کنید. |
otThreadSetEnabled ( otInstance *aInstance, bool aEnabled) | این تابع عملیات پروتکل Thread را شروع می کند. |
otThreadSetExtendedPanId ( otInstance *aInstance, const otExtendedPanId *aExtendedPanId) | IEEE 802.15.4 Extended PAN ID را تنظیم کنید. |
otThreadSetFixedDuaInterfaceIdentifier ( otInstance *aInstance, const otIp6InterfaceIdentifier *aIid) | تنظیم/پاک کردن شناسه رابط که به صورت دستی برای آدرس Unicast دامنه رشته مشخص شده است. |
otThreadSetJoinerAdvertisement ( otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength) | این روش هنگام کشف شبکه Thread، Thread Joiner Advertisement را تنظیم می کند. |
otThreadSetKeySequenceCounter ( otInstance *aInstance, uint32_t aKeySequenceCounter) | void thrKeySequenceCounter را تنظیم کنید. |
otThreadSetKeySwitchGuardTime ( otInstance *aInstance, uint32_t aKeySwitchGuardTime) | void thrKeySwitchGuardTime را تنظیم کنید. |
otThreadSetLinkMode ( otInstance *aInstance, otLinkModeConfig aConfig) | تنظیمات MLE Link Mode را تنظیم کنید. |
otThreadSetMeshLocalPrefix ( otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix) | این تابع پیشوند محلی Mesh را تنظیم می کند. |
otThreadSetNetworkKey ( otInstance *aInstance, const otNetworkKey *aKey) | کلید شبکه Thread را تنظیم کنید. |
otThreadSetNetworkKeyRef ( otInstance *aInstance, otNetworkKeyRef aKeyRef) | کلید شبکه Thread را به عنوان یک otNetworkKeyRef کنید. |
otThreadSetNetworkName ( otInstance *aInstance, const char *aNetworkName) | نام شبکه Thread را تنظیم کنید. |
سازه ها | |
---|---|
otBorderRouterConfig | این ساختار یک پیکربندی Border Router را نشان می دهد. |
otExternalRouteConfig | این ساختار یک پیکربندی مسیر خارجی را نشان می دهد. |
otIpCounters | این ساختار نشان دهنده شمارنده های سطح IP است. |
otLeaderData | این ساختار نشان دهنده داده های Thread Leader است. |
otLinkModeConfig | این ساختار یک پیکربندی MLE Link Mode را نشان می دهد. |
otMleCounters | این ساختار نشان دهنده شمارنده های Thread MLE است. |
otNeighborInfo | این ساختار اطلاعات تشخیصی را برای گره Thread همسایه نگه می دارد. |
otNetworkDiagChildEntry | این ساختار یک ورودی جدول کودک تشخیصی شبکه را نشان می دهد. |
otNetworkDiagConnectivity | این ساختار یک مقدار Network Diagnostic Connectivity را نشان می دهد. |
otNetworkDiagMacCounters | این ساختار یک مقدار Network Diagnostic Mac Counters را نشان می دهد. |
otNetworkDiagRoute | این ساختار یک مقدار TLV مسیر تشخیصی شبکه را نشان می دهد. |
otNetworkDiagRouteData | این ساختار یک داده مسیر تشخیصی شبکه را نشان می دهد. |
otNetworkDiagTlv | این ساختار یک TLV تشخیصی شبکه را نشان می دهد. |
otRouterInfo | این ساختار اطلاعات تشخیصی یک روتر Thread را در خود دارد. |
otServerConfig | این ساختار یک پیکربندی سرور را نشان می دهد. |
otServiceConfig | این ساختار یک پیکربندی سرویس را نشان می دهد. |
otThreadDiscoveryRequestInfo | این ساختار دادههای درخواست کشف موضوع را نشان میدهد. |
otThreadParentResponseInfo | این ساختار دادههای MLE Parent Response را نشان میدهد. |
شمارش ها
شماره ناشناس
anonymous enum
otDeviceRole
otDeviceRole
otNetDataPublisherEvent
otNetDataPublisherEvent
otRoutePreference
otRoutePreference
مقادیر معتبری را برای mPreference
در otExternalRouteConfig
و otBorderRouterConfig
تعریف می کند.
خواص | |
---|---|
OT_ROUTE_PREFERENCE_HIGH | ترجیح مسیر بالا |
OT_ROUTE_PREFERENCE_LOW | ترجیح مسیر کم |
OT_ROUTE_PREFERENCE_MED | ترجیح مسیر متوسط |
Typedefs
otBorderRouterConfig
struct otBorderRouterConfig otBorderRouterConfig
این ساختار یک پیکربندی Border Router را نشان می دهد.
otDetachGracefullyCallback
void(* otDetachGracefullyCallback)(void *aContext)
این فراخوانی به برنامه اطلاع می دهد که فرآیند جداسازی به پایان رسیده است.
جزئیات | |||
---|---|---|---|
مولفه های |
|
otExternalRouteConfig
struct otExternalRouteConfig otExternalRouteConfig
این ساختار یک پیکربندی مسیر خارجی را نشان می دهد.
otLinkModeConfig
struct otLinkModeConfig otLinkModeConfig
این ساختار یک پیکربندی MLE Link Mode را نشان می دهد.
otNeighborInfoIterator
int16_t otNeighborInfoIterator
برای تکرار از طریق جدول همسایه استفاده می شود.
otNetDataDnsSrpServicePublisherCallback
void(* otNetDataDnsSrpServicePublisherCallback)(otNetDataPublisherEvent aEvent, void *aContext)
این نوع نشانگر تابع، پاسخ تماس مورد استفاده برای اطلاع از اضافه شدن یا حذف ورودی "سرویس DNS/SRP" به داده شبکه موضوعی را مشخص می کند.
در هنگام حذف، فراخوانی مجدد مستقل از اینکه ورودی توسط Publisher
حذف شود (مثلاً زمانی که ورودی های مشابه در داده های شبکه وجود دارد) یا از طریق یک فراخوان صریح برای لغو انتشار ورودی (یعنی تماس با otNetDataUnpublishDnsSrpService()
می شود. ).
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPrefixPublisherCallback
void(* otNetDataPrefixPublisherCallback)(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext)
این نوع نشانگر تابع، پاسخ تماس مورد استفاده برای اطلاع از اضافه شدن یا حذف یک پیشوند (روی مش یا مسیر خارجی) به داده شبکه موضوعی را مشخص می کند.
در هنگام حذف، تماس برگشتی مستقل از این که آیا ورودی توسط Publisher
حذف شود (مثلاً زمانی که تعداد زیادی ورودی مشابه در داده های شبکه وجود دارد) یا از طریق یک فراخوان صریح برای لغو انتشار ورودی، فراخوانی می شود.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataPublisherEvent
enum otNetDataPublisherEvent otNetDataPublisherEvent
این شمارش رویدادهای گزارش شده از تماس های ناشر را نشان می دهد.
otNetworkDataIterator
uint32_t otNetworkDataIterator
برای تکرار از طریق اطلاعات شبکه داده استفاده می شود.
otNetworkDiagChildEntry
struct otNetworkDiagChildEntry otNetworkDiagChildEntry
این ساختار یک ورودی جدول کودک تشخیصی شبکه را نشان می دهد.
otNetworkDiagConnectivity
struct otNetworkDiagConnectivity otNetworkDiagConnectivity
این ساختار یک مقدار Network Diagnostic Connectivity را نشان می دهد.
otNetworkDiagIterator
uint16_t otNetworkDiagIterator
برای تکرار از طریق Network Diagnostic TLV استفاده می شود.
otNetworkDiagMacCounters
struct otNetworkDiagMacCounters otNetworkDiagMacCounters
این ساختار یک مقدار Network Diagnostic Mac Counters را نشان می دهد.
برای تعاریف فیلدهای عضو به RFC 2863 مراجعه کنید.
otNetworkDiagRoute
struct otNetworkDiagRoute otNetworkDiagRoute
این ساختار یک مقدار TLV مسیر تشخیصی شبکه را نشان می دهد.
otNetworkDiagRouteData
struct otNetworkDiagRouteData otNetworkDiagRouteData
این ساختار یک داده مسیر تشخیصی شبکه را نشان می دهد.
otNetworkDiagTlv
struct otNetworkDiagTlv otNetworkDiagTlv
این ساختار یک TLV تشخیصی شبکه را نشان می دهد.
otReceiveDiagnosticGetCallback
void(* otReceiveDiagnosticGetCallback)(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext)
این نشانگر عملکرد زمانی فراخوانی می شود که پاسخ دریافت تشخیصی شبکه دریافت شود.
جزئیات | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otRoutePreference
enum otRoutePreference otRoutePreference
مقادیر معتبری را برای mPreference
در otExternalRouteConfig
و otBorderRouterConfig
تعریف می کند.
otThreadAnycastLocatorCallback
void(* otThreadAnycastLocatorCallback)(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16)
این نوع نشانگر تابع، فراخوانی را برای اطلاع از نتیجه درخواست otThreadLocateAnycastDestination()
تعریف می کند.
جزئیات | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadDiscoveryRequestCallback
void(* otThreadDiscoveryRequestCallback)(const otThreadDiscoveryRequestInfo *aInfo, void *aContext)
هر بار که یک پیام درخواست کشف MLE دریافت می شود، این نشانگر تابع فراخوانی می شود.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadDiscoveryRequestInfo
struct otThreadDiscoveryRequestInfo otThreadDiscoveryRequestInfo
این ساختار دادههای درخواست کشف موضوع را نشان میدهد.
otThreadParentResponseCallback
void(* otThreadParentResponseCallback)(otThreadParentResponseInfo *aInfo, void *aContext)
هر بار که پیام پاسخ والدین MLE دریافت می شود، این نشانگر تابع فراخوانی می شود.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadParentResponseInfo
struct otThreadParentResponseInfo otThreadParentResponseInfo
این ساختار دادههای MLE Parent Response را نشان میدهد.
کارکرد
otNetDataContainsOmrPrefix
bool otNetDataContainsOmrPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
این تابع بررسی می کند که آیا یک پیشوند داده شده می تواند به عنوان یک پیشوند معتبر OMR عمل کند و همچنین داده های شبکه رهبر حاوی این پیشوند است.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
برمی گرداند | آیا aPrefix یک پیشوند معتبر OMR است و داده های شبکه رهبر حاوی پیشوند OMR aPrefix است. |
otNetDataGet
otError otNetDataGet( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
این روش یک کپی کامل یا پایدار از داده شبکه موضوعی پارتیشن را ارائه می دهد.
جزئیات | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataGetNextOnMeshPrefix
otError otNetDataGetNextOnMeshPrefix( otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig )
این تابع پیشوند On Mesh بعدی را در داده های شبکه پارتیشن دریافت می کند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataGetNextRoute
otError otNetDataGetNextRoute( otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig )
این تابع مسیر خارجی بعدی را در داده های شبکه پارتیشن دریافت می کند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataGetNextService
otError otNetDataGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
این تابع سرویس بعدی را در داده های شبکه پارتیشن دریافت می کند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataGetStableVersion
uint8_t otNetDataGetStableVersion( otInstance *aInstance )
نسخه Stable Network Data را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | نسخه داده های شبکه پایدار |
otNetDataGetVersion
uint8_t otNetDataGetVersion( otInstance *aInstance )
نسخه Network Data را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | نسخه داده شبکه |
otNetDataIsDnsSrpServiceAdded
bool otNetDataIsDnsSrpServiceAdded( otInstance *aInstance )
این تابع نشان می دهد که آیا در حال حاضر ورودی "DNS/SRP Service" به داده شبکه Thread اضافه شده است یا خیر.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
دارد.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otNetDataIsPrefixAdded
bool otNetDataIsPrefixAdded( otInstance *aInstance, const otIp6Prefix *aPrefix )
این تابع نشان می دهد که آیا در حال حاضر یک پیشوند منتشر شده (روی مش یا مسیر خارجی) به داده شبکه موضوع اضافه شده است یا خیر.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
دارد.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otNetDataPublishDnsSrpServiceAnycast
void otNetDataPublishDnsSrpServiceAnycast( otInstance *aInstance, uint8_t aSequenceNUmber )
این تابع درخواست "DNS/SRP Service Anycast Address" می کند تا در Thread Network Data منتشر شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
دارد.
فراخوانی به این تابع، هر ورودی قبلی «سرویس DNS/SRP» را که منتشر شده بود حذف و جایگزین میکند (از تماس قبلی با هر یک از توابع otNetDataPublishDnsSrpService{Type}()
).
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishDnsSrpServiceUnicast
void otNetDataPublishDnsSrpServiceUnicast( otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort )
این تابع درخواست "DNS/SRP Service Unicast Address" می کند تا در Thread Network Data منتشر شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
دارد.
فراخوانی به این تابع، هر ورودی قبلی «سرویس DNS/SRP» را که منتشر شده بود حذف و جایگزین میکند (از تماس قبلی با هر یک از توابع otNetDataPublishDnsSrpService{Type}()
).
این تابع "آدرس Unicast سرویس DNS/SRP" را با قرار دادن آدرس و اطلاعات پورت در داده های سرویس TLV منتشر می کند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid
void otNetDataPublishDnsSrpServiceUnicastMeshLocalEid( otInstance *aInstance, uint16_t aPort )
این تابع درخواست "DNS/SRP Service Unicast Address" می کند تا در Thread Network Data منتشر شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
دارد.
فراخوانی به این تابع، هر ورودی قبلی «سرویس DNS/SRP» را که منتشر شده بود حذف و جایگزین میکند (از تماس قبلی با هر یک از توابع otNetDataPublishDnsSrpService{Type}()
).
برخلاف otNetDataPublishDnsSrpServiceUnicast()
که نیاز به ارائه آدرس منتشر شده دارد و اطلاعات موجود در داده های سرویس TLV را شامل می شود، این تابع از شبکه EID محلی دستگاه استفاده می کند و اطلاعات موجود در داده های TLV سرور را شامل می شود.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishExternalRoute
otError otNetDataPublishExternalRoute( otInstance *aInstance, const otExternalRouteConfig *aConfig )
این تابع یک پیشوند مسیر خارجی را درخواست می کند تا در Thread Network Data منتشر شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
دارد.
فقط ورودی های پایدار می توانند منتشر شوند (یعنی aConfig.mStable
باید درست باشد).
فراخوانی بعدی به این روش جایگزین درخواست قبلی برای همان پیشوند خواهد شد. به ویژه، اگر فراخوانی جدید فقط پرچم ها را تغییر دهد (مثلاً سطح ترجیحی) و پیشوند قبلاً در داده های شبکه اضافه شده باشد، تغییر به پرچم ها بلافاصله در داده های شبکه منعکس می شود. این تضمین می کند که ورودی های موجود در داده های شبکه به طور ناگهانی حذف نمی شوند. توجه داشته باشید که تغییر در سطح اولویت میتواند بعداً باعث حذف ورودی از دادههای شبکه پس از تعیین وجود گرههای دیگری شود که همان پیشوند را با اولویت یکسان یا بالاتر منتشر میکنند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataPublishOnMeshPrefix
otError otNetDataPublishOnMeshPrefix( otInstance *aInstance, const otBorderRouterConfig *aConfig )
این تابع یک پیشوند روی مش را درخواست می کند تا در Thread Network Data منتشر شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
دارد.
فقط ورودی های پایدار می توانند منتشر شوند (یعنی aConfig.mStable
باید درست باشد).
فراخوانی بعدی به این روش جایگزین درخواست قبلی برای همان پیشوند خواهد شد. به ویژه، اگر فراخوانی جدید فقط پرچم ها را تغییر دهد (مثلاً سطح ترجیحی) و پیشوند قبلاً در داده های شبکه اضافه شده باشد، تغییر به پرچم ها بلافاصله در داده های شبکه منعکس می شود. این تضمین می کند که ورودی های موجود در داده های شبکه به طور ناگهانی حذف نمی شوند. توجه داشته باشید که تغییر در سطح اولویت میتواند بعداً باعث حذف ورودی از دادههای شبکه پس از تعیین وجود گرههای دیگری شود که همان پیشوند را با اولویت یکسان یا بالاتر منتشر میکنند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataSetDnsSrpServicePublisherCallback
void otNetDataSetDnsSrpServicePublisherCallback( otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext )
این تابع یک تماس برگشتی برای اطلاع از زمانی که یک "سرویس DNS/SRP" منتشر شده واقعاً به داده شبکه Thread اضافه یا از آن حذف می شود، تنظیم می کند.
فراخوانی بعدی به این تابع جایگزین هر تابع تماس قبلی تنظیم شده می شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
دارد.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataSetPrefixPublisherCallback
void otNetDataSetPrefixPublisherCallback( otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext )
این تابع یک تماس برگشتی برای اطلاع از زمانی که یک ورودی پیشوند منتشر شده واقعاً به داده شبکه موضوع اضافه یا از آن حذف شده است تنظیم می کند.
فراخوانی بعدی به این تابع جایگزین هر تابع تماس قبلی تنظیم شده می شود.
این تابع نیاز به فعال کردن ویژگی OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
دارد.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataSteeringDataCheckJoiner
otError otNetDataSteeringDataCheckJoiner( otInstance *aInstance, const otExtAddress *aEui64 )
بررسی کنید که آیا اطلاعات فرمان شامل Joiner است یا خیر.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataSteeringDataCheckJoinerWithDiscerner
otError otNetDataSteeringDataCheckJoinerWithDiscerner( otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner )
بررسی کنید که آیا دادههای فرمان شامل یک Joiner با مقدار تشخیص داده شده است یا خیر.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otNetDataUnpublishDnsSrpService
void otNetDataUnpublishDnsSrpService( otInstance *aInstance )
هر ورودی سرویس DNS/SRP (Anycast یا Unicast) که قبلاً اضافه شده است را از داده شبکه Thread لغو انتشار می کند.
OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
باید فعال باشد.
جزئیات | |||
---|---|---|---|
مولفه های |
|
otNetDataUnpublishPrefix
otError otNetDataUnpublishPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
پیشوند On-Mesh یا External Route منتشر شده قبلی را لغو انتشار می کند.
OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
باید فعال باشد.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otThreadBecomeChild
otError otThreadBecomeChild( otInstance *aInstance )
در کودکی سعی کنید دوباره وصل شوید.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otThreadBecomeDetached
otError otThreadBecomeDetached( otInstance *aInstance )
از شبکه Thread جدا شوید.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otThreadDetachGracefully
otError otThreadDetachGracefully( otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext )
این تابع به سایر گره های شبکه (در صورت وجود) اطلاع می دهد و سپس عملیات پروتکل Thread را متوقف می کند.
اگر یک روتر باشد، یک Address Release می فرستد، یا اگر یک فرزند باشد، تایم اوت فرزند خود را روی 0 تنظیم می کند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otThreadDeviceRoleToString
const char * otThreadDeviceRoleToString( otDeviceRole aRole )
نقش دستگاه را به رشته قابل خواندن توسط انسان تبدیل کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | رشته ای که aRole نشان می دهد. |
otThreadDiscover
otError otThreadDiscover( otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext )
این تابع یک اسکن Thread Discovery را شروع می کند.
جزئیات | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
ارزش های بازگشتی |
|
otThreadGetChildTimeout
uint32_t otThreadGetChildTimeout( otInstance *aInstance )
از Timeout Thread Child هنگام کار در نقش Child استفاده کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | مقدار Thread Child Timeout در ثانیه. |
otThreadSetChildTimeout
otThreadGetDeviceRole
otDeviceRole otThreadGetDeviceRole( otInstance *aInstance )
نقش دستگاه را دریافت کنید.
جزئیات | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||
ارزش های بازگشتی |
|
otThreadGetDomainName
const char * otThreadGetDomainName( otInstance *aInstance )
نام دامنه Thread را دریافت کنید.
این تابع فقط از Thread 1.2 در دسترس است.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به Thread Domain Name. |
otThreadSetDomainName
otThreadGetExtendedPanId
const otExtendedPanId * otThreadGetExtendedPanId( otInstance *aInstance )
IEEE 802.15.4 Extended PAN ID را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به شناسه PAN توسعه یافته IEEE 802.15.4. |
otThreadSetExtendedPanId
otThreadGetFixedDuaInterfaceIdentifier
const otIp6InterfaceIdentifier * otThreadGetFixedDuaInterfaceIdentifier( otInstance *aInstance )
شناسه رابط را که به صورت دستی برای آدرس Unicast دامنه Thread مشخص شده است دریافت کنید.
این تابع فقط از Thread 1.2 زمانی در دسترس است که OPENTHREAD_CONFIG_DUA_ENABLE
فعال باشد.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | یک اشاره گر به شناسه رابط که به صورت دستی تنظیم شده است، یا NULL اگر هیچ یک تنظیم نشده باشد. |
otThreadSetFixedDuaInterfaceIdentifier
otThreadGetIp6Counters
const otIpCounters * otThreadGetIp6Counters( otInstance *aInstance )
شمارنده های IPv6 را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به شمارنده های IPv6. |
otThreadGetKeySequenceCounter
uint32_t otThreadGetKeySequenceCounter( otInstance *aInstance )
thrKeySequenceCounter را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | مقدار thrKeySequenceCounter. |
otThreadSetKeySequenceCounter
otThreadGetKeySwitchGuardTime
uint32_t otThreadGetKeySwitchGuardTime( otInstance *aInstance )
thrKeySwitchGuardTime را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | مقدار thrKeySwitchGuardTime (به ساعت). |
otThreadSetKeySwitchGuardTime
otThreadGetLeaderData
otError otThreadGetLeaderData( otInstance *aInstance, otLeaderData *aLeaderData )
این تابع داده های Thread Leader را دریافت می کند.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
ارزش های بازگشتی |
|
otThreadGetLeaderRloc
otError otThreadGetLeaderRloc( otInstance *aInstance, otIp6Address *aLeaderRloc )
این تابع یک اشاره گر را به RLOC لیدر برمی گرداند.
جزئیات | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
ارزش های بازگشتی |
|
otThreadGetLeaderRouterId
uint8_t otThreadGetLeaderRouterId( otInstance *aInstance )
شناسه روتر رهبر را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | شناسه روتر رهبر. |
otThreadGetLeaderWeight
uint8_t otThreadGetLeaderWeight( otInstance *aInstance )
وزن رهبر را بدست آورید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | وزن رهبر |
otThreadGetLinkLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetLinkLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
این تابع آدرس چندپخشی Thread Link-Local All Thread Nodes را برمی گرداند.
این آدرس یک آدرس چندپخشی مبتنی بر پیشوند Unicast پیوند محلی است [RFC 3306]، با:
- flgs روی 3 تنظیم شد (P = 1 و T = 1)
- اسکوپ روی 2 تنظیم شد
- plen روی 64 تنظیم شد
- پیشوند شبکه روی پیشوند محلی مش تنظیم شده است
- شناسه گروه روی ۱ تنظیم شد
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به Thread Link-Local All Thread Nodes آدرس چندپخشی. |
otThreadGetLinkLocalIp6Address
const otIp6Address * otThreadGetLinkLocalIp6Address( otInstance *aInstance )
این تابع آدرس IPv6 محلی پیوند Thread را برمی گرداند.
آدرس محلی پیوند Thread با استفاده از IEEE802.15.4 Extended Address به عنوان شناسه رابط مشتق شده است.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به Thread link-local IPv6 address. |
otThreadGetLinkMode
otLinkModeConfig otThreadGetLinkMode( otInstance *aInstance )
پیکربندی MLE Link Mode را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | پیکربندی حالت پیوند MLE. |
otThreadSetLinkMode
otThreadGetMeshLocalEid
const otIp6Address * otThreadGetMeshLocalEid( otInstance *aInstance )
این تابع یک اشاره گر را به آدرس EID محلی Mesh برمی گرداند.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به آدرس EID محلی Mesh. |
otThreadGetMeshLocalPrefix
const otMeshLocalPrefix * otThreadGetMeshLocalPrefix( otInstance *aInstance )
این تابع یک اشاره گر را به پیشوند محلی Mesh برمی گرداند.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به پیشوند محلی Mesh. |
otThreadGetMleCounters
const otMleCounters * otThreadGetMleCounters( otInstance *aInstance )
شمارنده های Thread MLE را دریافت کنید.
جزئیات | |||
---|---|---|---|
مولفه های |
| ||
برمی گرداند | اشاره گر به شمارنده های Thread MLE. |
otThreadGetNetworkKey
void otThreadGetNetworkKey( otInstance *aInstance, otNetworkKey *aNetworkKey )
کلید شبکه Thread را دریافت کنید.
جزئیات | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadSetNetworkKey
otThreadGetNetworkKeyRef
otNetworkKeyRef otThreadGetNetworkKeyRef( otInstance *aInstance )
کلید otNetworkKeyRef
برای Thread Network را دریافت کنید.
This function requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | Reference to the Thread Network Key stored in memory. |
otThreadSetNetworkKeyRef
otThreadGetNetworkName
const char * otThreadGetNetworkName( otInstance *aInstance )
Get the Thread Network Name.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread Network Name. |
otThreadSetNetworkName
otThreadGetNextDiagnosticTlv
otError otThreadGetNextDiagnosticTlv( const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv )
This function gets the next Network Diagnostic TLV in the message.
A subsequent call to this function is allowed only when current return value is OT_ERROR_NONE.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetNextNeighborInfo
otError otThreadGetNextNeighborInfo( otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo )
This function gets the next neighbor information.
It is used to go through the entries of the neighbor table.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetParentAverageRssi
otError otThreadGetParentAverageRssi( otInstance *aInstance, int8_t *aParentRssi )
The function retrieves the average RSSI for the Thread Parent.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetParentInfo
otError otThreadGetParentInfo( otInstance *aInstance, otRouterInfo *aParentInfo )
The function retrieves diagnostic information for a Thread Router as parent.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetParentLastRssi
otError otThreadGetParentLastRssi( otInstance *aInstance, int8_t *aLastRssi )
The function retrieves the RSSI of the last packet from the Thread Parent.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetPartitionId
uint32_t otThreadGetPartitionId( otInstance *aInstance )
Get the Partition ID.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Partition ID. |
otThreadGetRealmLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetRealmLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
This function returns the Thread Realm-Local All Thread Nodes multicast address.
The address is a realm-local Unicast Prefix-Based Multcast Address [RFC 3306], with:
- flgs set to 3 (P = 1 and T = 1)
- scop set to 3
- plen set to 64
- network prefix set to the Mesh Local Prefix
- group ID set to 1
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to Thread Realm-Local All Thread Nodes multicast address. |
otThreadGetRloc
const otIp6Address * otThreadGetRloc( otInstance *aInstance )
This function returns a pointer to the Thread Routing Locator (RLOC) address.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread Routing Locator (RLOC) address. |
otThreadGetRloc16
uint16_t otThreadGetRloc16( otInstance *aInstance )
Get the RLOC16.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The RLOC16. |
otThreadGetServiceAloc
otError otThreadGetServiceAloc( otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc )
This function retrieves the Service ALOC for given Service ID.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetVersion
uint16_t otThreadGetVersion( void )
This function gets the Thread protocol version.
Details | |
---|---|
Returns | the Thread protocol version. |
otThreadIsAnycastLocateInProgress
bool otThreadIsAnycastLocateInProgress( otInstance *aInstance )
This function indicates whether an anycast locate request is currently in progress.
This function is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | TRUE if an anycast locate request is currently in progress, FALSE otherwise. |
otThreadIsDiscoverInProgress
bool otThreadIsDiscoverInProgress( otInstance *aInstance )
This function determines if an MLE Thread Discovery is currently in progress.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadIsSingleton
bool otThreadIsSingleton( otInstance *aInstance )
This function indicates whether a node is the only router on the network.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadLocateAnycastDestination
otError otThreadLocateAnycastDestination( otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext )
This function requests the closest destination of a given anycast address to be located.
This function is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
If a previous request is ongoing, a subsequent call to this function will cancel and replace the earlier request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadRegisterParentResponseCallback
void otThreadRegisterParentResponseCallback( otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext )
This function registers a callback to receive MLE Parent Response data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadResetIp6Counters
void otThreadResetIp6Counters( otInstance *aInstance )
Reset the IPv6 counters.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadResetMleCounters
void otThreadResetMleCounters( otInstance *aInstance )
Reset the Thread MLE counters.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadSendAddressNotification
void otThreadSendAddressNotification( otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid )
This function sends a Proactive Address Notification (ADDR_NTF.ntf) message.
This function is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadSendDiagnosticGet
otError otThreadSendDiagnosticGet( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext )
Send a Network Diagnostic Get request.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
Return Values |
|
otThreadSendDiagnosticReset
otError otThreadSendDiagnosticReset( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount )
Send a Network Diagnostic Reset request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSendProactiveBackboneNotification
otError otThreadSendProactiveBackboneNotification( otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction )
This function sends a Proactive Backbone Notification (PRO_BB.ntf) message on the Backbone link.
This function is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSetChildTimeout
void otThreadSetChildTimeout( otInstance *aInstance, uint32_t aTimeout )
Set the Thread Child Timeout used when operating in the Child role.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetChildTimeout
otThreadSetDiscoveryRequestCallback
void otThreadSetDiscoveryRequestCallback( otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext )
This function sets a callback to receive MLE Discovery Request data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadSetDomainName
otError otThreadSetDomainName( otInstance *aInstance, const char *aDomainName )
Set the Thread Domain Name.
This function is only available since Thread 1.2. This function succeeds only when Thread protocols are disabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetDomainName
otThreadSetEnabled
otError otThreadSetEnabled( otInstance *aInstance, bool aEnabled )
This function starts Thread protocol operation.
The interface must be up when calling this function.
Calling this function with aEnabled
set to FALSE stops any ongoing processes of detaching started by otThreadDetachGracefully() . Its callback will be called.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadSetExtendedPanId
otError otThreadSetExtendedPanId( otInstance *aInstance, const otExtendedPanId *aExtendedPanId )
Set the IEEE 802.15.4 Extended PAN ID.
This function can only be called while Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetExtendedPanId
otThreadSetFixedDuaInterfaceIdentifier
otError otThreadSetFixedDuaInterfaceIdentifier( otInstance *aInstance, const otIp6InterfaceIdentifier *aIid )
Set/Clear the Interface Identifier manually specified for the Thread Domain Unicast Address.
This function is only available since Thread 1.2 when OPENTHREAD_CONFIG_DUA_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetFixedDuaInterfaceIdentifier
otThreadSetJoinerAdvertisement
otError otThreadSetJoinerAdvertisement( otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength )
This method sets the Thread Joiner Advertisement when discovering Thread network.
Thread Joiner Advertisement is used to allow a Joiner to advertise its own application-specific information (such as Vendor ID, Product ID, Discriminator, etc.) via a newly-proposed Joiner Advertisement TLV, and to make this information available to Commissioners or Commissioner Candidates without human interaction.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSetKeySequenceCounter
void otThreadSetKeySequenceCounter( otInstance *aInstance, uint32_t aKeySequenceCounter )
Set the thrKeySequenceCounter.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetKeySequenceCounter
otThreadSetKeySwitchGuardTime
void otThreadSetKeySwitchGuardTime( otInstance *aInstance, uint32_t aKeySwitchGuardTime )
Set the thrKeySwitchGuardTime.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetKeySwitchGuardTime
otThreadSetLinkMode
otError otThreadSetLinkMode( otInstance *aInstance, otLinkModeConfig aConfig )
Set the MLE Link Mode configuration.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetLinkMode
otThreadSetMeshLocalPrefix
otError otThreadSetMeshLocalPrefix( otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix )
This function sets the Mesh Local Prefix.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadSetNetworkKey
otError otThreadSetNetworkKey( otInstance *aInstance, const otNetworkKey *aKey )
Set the Thread Network Key.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkKey
otThreadSetNetworkKeyRef
otError otThreadSetNetworkKeyRef( otInstance *aInstance, otNetworkKeyRef aKeyRef )
Set the Thread Network Key as a otNetworkKeyRef
.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
This function requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkKeyRef
otThreadSetNetworkName
otError otThreadSetNetworkName( otInstance *aInstance, const char *aNetworkName )
Set the Thread Network Name.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkName
Macros
OT_JOINER_ADVDATA_MAX_LENGTH
OT_JOINER_ADVDATA_MAX_LENGTH 64
Maximum AdvData Length of Joiner Advertisement.
OT_NEIGHBOR_INFO_ITERATOR_INIT
OT_NEIGHBOR_INFO_ITERATOR_INIT 0
Initializer for otNeighborInfoIterator.
OT_NETWORK_BASE_TLV_MAX_LENGTH
OT_NETWORK_BASE_TLV_MAX_LENGTH 254
Maximum value length of Thread Base TLV.
OT_NETWORK_DATA_ITERATOR_INIT
OT_NETWORK_DATA_ITERATOR_INIT 0
Value to initialize otNetworkDataIterator
.
OT_NETWORK_DIAGNOSTIC_CHILD_TABLE_ENTRY_SIZE
OT_NETWORK_DIAGNOSTIC_CHILD_TABLE_ENTRY_SIZE 3
Size of Network Diagnostic Child Table entry.
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT 0
Initializer for otNetworkDiagIterator.
OT_NETWORK_DIAGNOSTIC_TYPELIST_MAX_ENTRIES
OT_NETWORK_DIAGNOSTIC_TYPELIST_MAX_ENTRIES 19
Maximum Number of Network Diagnostic TLV Types to Request or Reset.
OT_NETWORK_MAX_ROUTER_ID
OT_NETWORK_MAX_ROUTER_ID 62
Maximum Router ID.
OT_SERVER_DATA_MAX_SIZE
OT_SERVER_DATA_MAX_SIZE 248
Max size of Server Data in bytes. Theoretical limit, practically much lower.
OT_SERVICE_DATA_MAX_SIZE
OT_SERVICE_DATA_MAX_SIZE 252
Max size of Service Data in bytes.
Resources
موضوعات مرجع OpenThread API از کد منبع موجود در GitHub سرچشمه می گیرند. برای اطلاعات بیشتر، یا مشارکت در اسناد ما، به منابع مراجعه کنید.
,General
این ماژول شامل توابعی برای همه نقش های Thread است.
Summary
The Network Data Publisher provides mechanisms to limit the number of similar Service and/or Prefix (on-mesh prefix or external route) entries in the Thread Network Data by monitoring the Network Data and managing if or when to add or remove entries.
All the functions in this module require OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE
to be enabled.
Typedefs | |
---|---|
otBorderRouterConfig | typedefstruct otBorderRouterConfig This structure represents a Border Router configuration. |
otDetachGracefullyCallback )(void *aContext) | typedefvoid(* This callback informs the application that the detaching process has finished. |
otExternalRouteConfig | typedefstruct otExternalRouteConfig This structure represents an External Route configuration. |
otIpCounters | typedefstruct otIpCounters This structure represents the IP level counters. |
otLeaderData | typedefstruct otLeaderData This structure represents the Thread Leader Data. |
otLinkModeConfig | typedefstruct otLinkModeConfig This structure represents an MLE Link Mode configuration. |
otMleCounters | typedefstruct otMleCounters This structure represents the Thread MLE counters. |
otNeighborInfoIterator | typedefint16_t Used to iterate through neighbor table. |
otNetDataDnsSrpServicePublisherCallback )(otNetDataPublisherEvent aEvent, void *aContext) | typedefvoid(* This function pointer type defines the callback used to notify when a "DNS/SRP Service" entry is added to or removed from the Thread Network Data. |
otNetDataPrefixPublisherCallback )(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext) | typedefvoid(* This function pointer type defines the callback used to notify when a prefix (on-mesh or external route) entry is added to or removed from the Thread Network Data. |
otNetDataPublisherEvent | typedef This enumeration represents the events reported from the Publisher callbacks. |
otNetworkDataIterator | typedefuint32_t Used to iterate through Network Data information. |
otNetworkDiagChildEntry | typedefstruct otNetworkDiagChildEntry This structure represents a Network Diagnostic Child Table Entry. |
otNetworkDiagConnectivity | typedefstruct otNetworkDiagConnectivity This structure represents a Network Diagnostic Connectivity value. |
otNetworkDiagIterator | typedefuint16_t Used to iterate through Network Diagnostic TLV. |
otNetworkDiagMacCounters | typedefstruct otNetworkDiagMacCounters This structure represents a Network Diagnostic Mac Counters value. |
otNetworkDiagRoute | typedefstruct otNetworkDiagRoute This structure represents a Network Diagnostic Route TLV value. |
otNetworkDiagRouteData | typedefstruct otNetworkDiagRouteData This structure represents a Network Diagnostic Route data. |
otNetworkDiagTlv | typedefstruct otNetworkDiagTlv This structure represents a Network Diagnostic TLV. |
otReceiveDiagnosticGetCallback )(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext) | typedefvoid(* This function pointer is called when Network Diagnostic Get response is received. |
otRoutePreference | typedefenum otRoutePreference |
otServerConfig | typedefstruct otServerConfig This structure represents a Server configuration. |
otServiceConfig | typedefstruct otServiceConfig This structure represents a Service configuration. |
otThreadAnycastLocatorCallback )(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16) | typedefvoid(* This function pointer type defines the callback to notify the outcome of a otThreadLocateAnycastDestination() request. |
otThreadDiscoveryRequestCallback )(const otThreadDiscoveryRequestInfo *aInfo, void *aContext) | typedefvoid(* This function pointer is called every time an MLE Discovery Request message is received. |
otThreadDiscoveryRequestInfo | typedefstruct otThreadDiscoveryRequestInfo This structure represents the Thread Discovery Request data. |
otThreadParentResponseCallback )(otThreadParentResponseInfo *aInfo, void *aContext) | typedefvoid(* This function pointer is called every time an MLE Parent Response message is received. |
otThreadParentResponseInfo | typedefstruct otThreadParentResponseInfo This structure represents the MLE Parent Response data. |
Functions | |
---|---|
otNetDataContainsOmrPrefix ( otInstance *aInstance, const otIp6Prefix *aPrefix) | bool This function checks whether a given Prefix can act as a valid OMR prefix and also the Leader's Network Data contains this prefix. |
otNetDataGet ( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength) | This method provides a full or stable copy of the Partition's Thread Network Data. |
otNetDataGetNextOnMeshPrefix ( otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig) | This function gets the next On Mesh Prefix in the partition's Network Data. |
otNetDataGetNextRoute ( otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig) | This function gets the next external route in the partition's Network Data. |
otNetDataGetNextService ( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig) | This function gets the next service in the partition's Network Data. |
otNetDataGetStableVersion ( otInstance *aInstance) | uint8_t Get the Stable Network Data Version. |
otNetDataGetVersion ( otInstance *aInstance) | uint8_t Get the Network Data Version. |
otNetDataIsDnsSrpServiceAdded ( otInstance *aInstance) | bool This function indicates whether or not currently the "DNS/SRP Service" entry is added to the Thread Network Data. |
otNetDataIsPrefixAdded ( otInstance *aInstance, const otIp6Prefix *aPrefix) | bool This function indicates whether or not currently a published prefix entry (on-mesh or external route) is added to the Thread Network Data. |
otNetDataPublishDnsSrpServiceAnycast ( otInstance *aInstance, uint8_t aSequenceNUmber) | void This function requests "DNS/SRP Service Anycast Address" to be published in the Thread Network Data. |
otNetDataPublishDnsSrpServiceUnicast ( otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort) | void This function requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data. |
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid ( otInstance *aInstance, uint16_t aPort) | void This function requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data. |
otNetDataPublishExternalRoute ( otInstance *aInstance, const otExternalRouteConfig *aConfig) | This function requests an external route prefix to be published in the Thread Network Data. |
otNetDataPublishOnMeshPrefix ( otInstance *aInstance, const otBorderRouterConfig *aConfig) | This function requests an on-mesh prefix to be published in the Thread Network Data. |
otNetDataSetDnsSrpServicePublisherCallback ( otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext) | void This function sets a callback for notifying when a published "DNS/SRP Service" is actually added to or removed from the Thread Network Data. |
otNetDataSetPrefixPublisherCallback ( otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext) | void This function sets a callback for notifying when a published prefix entry is actually added to or removed from the Thread Network Data. |
otNetDataSteeringDataCheckJoiner ( otInstance *aInstance, const otExtAddress *aEui64) | Check if the steering data includes a Joiner. |
otNetDataSteeringDataCheckJoinerWithDiscerner ( otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner) | Check if the steering data includes a Joiner with a given discerner value. |
otNetDataUnpublishDnsSrpService ( otInstance *aInstance) | void Unpublishes any previously added DNS/SRP (Anycast or Unicast) Service entry from the Thread Network Data. |
otNetDataUnpublishPrefix ( otInstance *aInstance, const otIp6Prefix *aPrefix) | Unpublishes a previously published On-Mesh or External Route Prefix. |
otThreadBecomeChild ( otInstance *aInstance) | Attempt to reattach as a child. |
otThreadBecomeDetached ( otInstance *aInstance) | Detach from the Thread network. |
otThreadDetachGracefully ( otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext) | This function notifies other nodes in the network (if any) and then stops Thread protocol operation. |
otThreadDeviceRoleToString ( otDeviceRole aRole) | const char * Convert the device role to human-readable string. |
otThreadDiscover ( otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext) | This function starts a Thread Discovery scan. |
otThreadGetChildTimeout ( otInstance *aInstance) | uint32_t Get the Thread Child Timeout used when operating in the Child role. |
otThreadGetDeviceRole ( otInstance *aInstance) | Get the device role. |
otThreadGetDomainName ( otInstance *aInstance) | const char * Get the Thread Domain Name. |
otThreadGetExtendedPanId ( otInstance *aInstance) | const otExtendedPanId * Get the IEEE 802.15.4 Extended PAN ID. |
otThreadGetFixedDuaInterfaceIdentifier ( otInstance *aInstance) | const otIp6InterfaceIdentifier * Get the Interface Identifier manually specified for the Thread Domain Unicast Address. |
otThreadGetIp6Counters ( otInstance *aInstance) | const otIpCounters * Get the IPv6 counters. |
otThreadGetKeySequenceCounter ( otInstance *aInstance) | uint32_t Get the thrKeySequenceCounter. |
otThreadGetKeySwitchGuardTime ( otInstance *aInstance) | uint32_t Get the thrKeySwitchGuardTime. |
otThreadGetLeaderData ( otInstance *aInstance, otLeaderData *aLeaderData) | This function get the Thread Leader Data. |
otThreadGetLeaderRloc ( otInstance *aInstance, otIp6Address *aLeaderRloc) | This function returns a pointer to the Leader's RLOC. |
otThreadGetLeaderRouterId ( otInstance *aInstance) | uint8_t Get the Leader's Router ID. |
otThreadGetLeaderWeight ( otInstance *aInstance) | uint8_t Get the Leader's Weight. |
otThreadGetLinkLocalAllThreadNodesMulticastAddress ( otInstance *aInstance) | const otIp6Address * This function returns the Thread Link-Local All Thread Nodes multicast address. |
otThreadGetLinkLocalIp6Address ( otInstance *aInstance) | const otIp6Address * This function returns the Thread link-local IPv6 address. |
otThreadGetLinkMode ( otInstance *aInstance) | Get the MLE Link Mode configuration. |
otThreadGetMeshLocalEid ( otInstance *aInstance) | const otIp6Address * This function returns a pointer to the Mesh Local EID address. |
otThreadGetMeshLocalPrefix ( otInstance *aInstance) | const otMeshLocalPrefix * This function returns a pointer to the Mesh Local Prefix. |
otThreadGetMleCounters ( otInstance *aInstance) | const otMleCounters * Get the Thread MLE counters. |
otThreadGetNetworkKey ( otInstance *aInstance, otNetworkKey *aNetworkKey) | void Get the Thread Network Key. |
otThreadGetNetworkKeyRef ( otInstance *aInstance) | Get the otNetworkKeyRef for Thread Network Key. |
otThreadGetNetworkName ( otInstance *aInstance) | const char * Get the Thread Network Name. |
otThreadGetNextDiagnosticTlv (const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv) | This function gets the next Network Diagnostic TLV in the message. |
otThreadGetNextNeighborInfo ( otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo) | This function gets the next neighbor information. |
otThreadGetParentAverageRssi ( otInstance *aInstance, int8_t *aParentRssi) | The function retrieves the average RSSI for the Thread Parent. |
otThreadGetParentInfo ( otInstance *aInstance, otRouterInfo *aParentInfo) | The function retrieves diagnostic information for a Thread Router as parent. |
otThreadGetParentLastRssi ( otInstance *aInstance, int8_t *aLastRssi) | The function retrieves the RSSI of the last packet from the Thread Parent. |
otThreadGetPartitionId ( otInstance *aInstance) | uint32_t Get the Partition ID. |
otThreadGetRealmLocalAllThreadNodesMulticastAddress ( otInstance *aInstance) | const otIp6Address * This function returns the Thread Realm-Local All Thread Nodes multicast address. |
otThreadGetRloc ( otInstance *aInstance) | const otIp6Address * This function returns a pointer to the Thread Routing Locator (RLOC) address. |
otThreadGetRloc16 ( otInstance *aInstance) | uint16_t Get the RLOC16. |
otThreadGetServiceAloc ( otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc) | This function retrieves the Service ALOC for given Service ID. |
otThreadGetVersion (void) | uint16_t This function gets the Thread protocol version. |
otThreadIsAnycastLocateInProgress ( otInstance *aInstance) | bool This function indicates whether an anycast locate request is currently in progress. |
otThreadIsDiscoverInProgress ( otInstance *aInstance) | bool This function determines if an MLE Thread Discovery is currently in progress. |
otThreadIsSingleton ( otInstance *aInstance) | bool This function indicates whether a node is the only router on the network. |
otThreadLocateAnycastDestination ( otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext) | This function requests the closest destination of a given anycast address to be located. |
otThreadRegisterParentResponseCallback ( otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext) | void This function registers a callback to receive MLE Parent Response data. |
otThreadResetIp6Counters ( otInstance *aInstance) | void Reset the IPv6 counters. |
otThreadResetMleCounters ( otInstance *aInstance) | void Reset the Thread MLE counters. |
otThreadSendAddressNotification ( otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid) | void This function sends a Proactive Address Notification (ADDR_NTF.ntf) message. |
otThreadSendDiagnosticGet ( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext) | Send a Network Diagnostic Get request. |
otThreadSendDiagnosticReset ( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount) | Send a Network Diagnostic Reset request. |
otThreadSendProactiveBackboneNotification ( otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction) | This function sends a Proactive Backbone Notification (PRO_BB.ntf) message on the Backbone link. |
otThreadSetChildTimeout ( otInstance *aInstance, uint32_t aTimeout) | void Set the Thread Child Timeout used when operating in the Child role. |
otThreadSetDiscoveryRequestCallback ( otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext) | void This function sets a callback to receive MLE Discovery Request data. |
otThreadSetDomainName ( otInstance *aInstance, const char *aDomainName) | Set the Thread Domain Name. |
otThreadSetEnabled ( otInstance *aInstance, bool aEnabled) | This function starts Thread protocol operation. |
otThreadSetExtendedPanId ( otInstance *aInstance, const otExtendedPanId *aExtendedPanId) | Set the IEEE 802.15.4 Extended PAN ID. |
otThreadSetFixedDuaInterfaceIdentifier ( otInstance *aInstance, const otIp6InterfaceIdentifier *aIid) | Set/Clear the Interface Identifier manually specified for the Thread Domain Unicast Address. |
otThreadSetJoinerAdvertisement ( otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength) | This method sets the Thread Joiner Advertisement when discovering Thread network. |
otThreadSetKeySequenceCounter ( otInstance *aInstance, uint32_t aKeySequenceCounter) | void Set the thrKeySequenceCounter. |
otThreadSetKeySwitchGuardTime ( otInstance *aInstance, uint32_t aKeySwitchGuardTime) | void Set the thrKeySwitchGuardTime. |
otThreadSetLinkMode ( otInstance *aInstance, otLinkModeConfig aConfig) | Set the MLE Link Mode configuration. |
otThreadSetMeshLocalPrefix ( otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix) | This function sets the Mesh Local Prefix. |
otThreadSetNetworkKey ( otInstance *aInstance, const otNetworkKey *aKey) | Set the Thread Network Key. |
otThreadSetNetworkKeyRef ( otInstance *aInstance, otNetworkKeyRef aKeyRef) | Set the Thread Network Key as a otNetworkKeyRef . |
otThreadSetNetworkName ( otInstance *aInstance, const char *aNetworkName) | Set the Thread Network Name. |
Structs | |
---|---|
otBorderRouterConfig | This structure represents a Border Router configuration. |
otExternalRouteConfig | This structure represents an External Route configuration. |
otIpCounters | This structure represents the IP level counters. |
otLeaderData | This structure represents the Thread Leader Data. |
otLinkModeConfig | This structure represents an MLE Link Mode configuration. |
otMleCounters | This structure represents the Thread MLE counters. |
otNeighborInfo | This structure holds diagnostic information for a neighboring Thread node. |
otNetworkDiagChildEntry | This structure represents a Network Diagnostic Child Table Entry. |
otNetworkDiagConnectivity | This structure represents a Network Diagnostic Connectivity value. |
otNetworkDiagMacCounters | This structure represents a Network Diagnostic Mac Counters value. |
otNetworkDiagRoute | This structure represents a Network Diagnostic Route TLV value. |
otNetworkDiagRouteData | This structure represents a Network Diagnostic Route data. |
otNetworkDiagTlv | This structure represents a Network Diagnostic TLV. |
otRouterInfo | This structure holds diagnostic information for a Thread Router. |
otServerConfig | This structure represents a Server configuration. |
otServiceConfig | This structure represents a Service configuration. |
otThreadDiscoveryRequestInfo | This structure represents the Thread Discovery Request data. |
otThreadParentResponseInfo | This structure represents the MLE Parent Response data. |
Enumerations
anonymous enum
anonymous enum
otDeviceRole
otDeviceRole
Represents a Thread device role.
otNetDataPublisherEvent
otNetDataPublisherEvent
otRoutePreference
otRoutePreference
Defines valid values for mPreference
in otExternalRouteConfig
and otBorderRouterConfig
.
خواص | |
---|---|
OT_ROUTE_PREFERENCE_HIGH | High route preference. |
OT_ROUTE_PREFERENCE_LOW | Low route preference. |
OT_ROUTE_PREFERENCE_MED | Medium route preference. |
Typedefs
otBorderRouterConfig
struct otBorderRouterConfig otBorderRouterConfig
This structure represents a Border Router configuration.
otDetachGracefullyCallback
void(* otDetachGracefullyCallback)(void *aContext)
This callback informs the application that the detaching process has finished.
Details | |||
---|---|---|---|
مولفه های |
|
otExternalRouteConfig
struct otExternalRouteConfig otExternalRouteConfig
This structure represents an External Route configuration.
otLinkModeConfig
struct otLinkModeConfig otLinkModeConfig
This structure represents an MLE Link Mode configuration.
otNeighborInfoIterator
int16_t otNeighborInfoIterator
Used to iterate through neighbor table.
otNetDataDnsSrpServicePublisherCallback
void(* otNetDataDnsSrpServicePublisherCallback)(otNetDataPublisherEvent aEvent, void *aContext)
This function pointer type defines the callback used to notify when a "DNS/SRP Service" entry is added to or removed from the Thread Network Data.
On remove the callback is invoked independent of whether the entry is removed by Publisher
(eg, when there are too many similar entries already present in the Network Data) or through an explicit call to unpublish the entry (ie, a call to otNetDataUnpublishDnsSrpService()
).
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPrefixPublisherCallback
void(* otNetDataPrefixPublisherCallback)(otNetDataPublisherEvent aEvent, const otIp6Prefix *aPrefix, void *aContext)
This function pointer type defines the callback used to notify when a prefix (on-mesh or external route) entry is added to or removed from the Thread Network Data.
On remove the callback is invoked independent of whether the entry is removed by Publisher
(eg, when there are too many similar entries already present in the Network Data) or through an explicit call to unpublish the entry.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataPublisherEvent
enum otNetDataPublisherEvent otNetDataPublisherEvent
This enumeration represents the events reported from the Publisher callbacks.
otNetworkDataIterator
uint32_t otNetworkDataIterator
Used to iterate through Network Data information.
otNetworkDiagChildEntry
struct otNetworkDiagChildEntry otNetworkDiagChildEntry
This structure represents a Network Diagnostic Child Table Entry.
otNetworkDiagConnectivity
struct otNetworkDiagConnectivity otNetworkDiagConnectivity
This structure represents a Network Diagnostic Connectivity value.
otNetworkDiagIterator
uint16_t otNetworkDiagIterator
Used to iterate through Network Diagnostic TLV.
otNetworkDiagMacCounters
struct otNetworkDiagMacCounters otNetworkDiagMacCounters
This structure represents a Network Diagnostic Mac Counters value.
See RFC 2863 for definitions of member fields.
otNetworkDiagRoute
struct otNetworkDiagRoute otNetworkDiagRoute
This structure represents a Network Diagnostic Route TLV value.
otNetworkDiagRouteData
struct otNetworkDiagRouteData otNetworkDiagRouteData
This structure represents a Network Diagnostic Route data.
otNetworkDiagTlv
struct otNetworkDiagTlv otNetworkDiagTlv
This structure represents a Network Diagnostic TLV.
otReceiveDiagnosticGetCallback
void(* otReceiveDiagnosticGetCallback)(otError aError, otMessage *aMessage, const otMessageInfo *aMessageInfo, void *aContext)
This function pointer is called when Network Diagnostic Get response is received.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otRoutePreference
enum otRoutePreference otRoutePreference
Defines valid values for mPreference
in otExternalRouteConfig
and otBorderRouterConfig
.
otServerConfig
struct otServerConfig otServerConfig
This structure represents a Server configuration.
otServiceConfig
struct otServiceConfig otServiceConfig
This structure represents a Service configuration.
otThreadAnycastLocatorCallback
void(* otThreadAnycastLocatorCallback)(void *aContext, otError aError, const otIp6Address *aMeshLocalAddress, uint16_t aRloc16)
This function pointer type defines the callback to notify the outcome of a otThreadLocateAnycastDestination()
request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadDiscoveryRequestCallback
void(* otThreadDiscoveryRequestCallback)(const otThreadDiscoveryRequestInfo *aInfo, void *aContext)
This function pointer is called every time an MLE Discovery Request message is received.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadDiscoveryRequestInfo
struct otThreadDiscoveryRequestInfo otThreadDiscoveryRequestInfo
This structure represents the Thread Discovery Request data.
otThreadParentResponseCallback
void(* otThreadParentResponseCallback)(otThreadParentResponseInfo *aInfo, void *aContext)
This function pointer is called every time an MLE Parent Response message is received.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadParentResponseInfo
struct otThreadParentResponseInfo otThreadParentResponseInfo
This structure represents the MLE Parent Response data.
Functions
otNetDataContainsOmrPrefix
bool otNetDataContainsOmrPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
This function checks whether a given Prefix can act as a valid OMR prefix and also the Leader's Network Data contains this prefix.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Returns | Whether aPrefix is a valid OMR prefix and Leader's Network Data contains the OMR prefix aPrefix . |
otNetDataGet
otError otNetDataGet( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
This method provides a full or stable copy of the Partition's Thread Network Data.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataGetNextOnMeshPrefix
otError otNetDataGetNextOnMeshPrefix( otInstance *aInstance, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig )
This function gets the next On Mesh Prefix in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataGetNextRoute
otError otNetDataGetNextRoute( otInstance *aInstance, otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig )
This function gets the next external route in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataGetNextService
otError otNetDataGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
This function gets the next service in the partition's Network Data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataGetStableVersion
uint8_t otNetDataGetStableVersion( otInstance *aInstance )
Get the Stable Network Data Version.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Stable Network Data Version. |
otNetDataGetVersion
uint8_t otNetDataGetVersion( otInstance *aInstance )
Get the Network Data Version.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Network Data Version. |
otNetDataIsDnsSrpServiceAdded
bool otNetDataIsDnsSrpServiceAdded( otInstance *aInstance )
This function indicates whether or not currently the "DNS/SRP Service" entry is added to the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otNetDataIsPrefixAdded
bool otNetDataIsPrefixAdded( otInstance *aInstance, const otIp6Prefix *aPrefix )
This function indicates whether or not currently a published prefix entry (on-mesh or external route) is added to the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otNetDataPublishDnsSrpServiceAnycast
void otNetDataPublishDnsSrpServiceAnycast( otInstance *aInstance, uint8_t aSequenceNUmber )
This function requests "DNS/SRP Service Anycast Address" to be published in the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishDnsSrpServiceUnicast
void otNetDataPublishDnsSrpServiceUnicast( otInstance *aInstance, const otIp6Address *aAddress, uint16_t aPort )
This function requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
This function publishes the "DNS/SRP Service Unicast Address" by including the address and port info in the Service TLV data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishDnsSrpServiceUnicastMeshLocalEid
void otNetDataPublishDnsSrpServiceUnicastMeshLocalEid( otInstance *aInstance, uint16_t aPort )
This function requests "DNS/SRP Service Unicast Address" to be published in the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
A call to this function will remove and replace any previous "DNS/SRP Service" entry that was being published (from earlier call to any of otNetDataPublishDnsSrpService{Type}()
functions).
Unlike otNetDataPublishDnsSrpServiceUnicast()
which requires the published address to be given and includes the info in the Service TLV data, this function uses the device's mesh-local EID and includes the info in the Server TLV data.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otNetDataPublishExternalRoute
otError otNetDataPublishExternalRoute( otInstance *aInstance, const otExternalRouteConfig *aConfig )
This function requests an external route prefix to be published in the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Only stable entries can be published (ie, aConfig.mStable
MUST be TRUE).
A subsequent call to this method will replace a previous request for the same prefix. In particular, if the new call only changes the flags (eg, preference level) and the prefix is already added in the Network Data, the change to flags is immediately reflected in the Network Data. This ensures that existing entries in the Network Data are not abruptly removed. Note that a change in the preference level can potentially later cause the entry to be removed from the Network Data after determining there are other nodes that are publishing the same prefix with the same or higher preference.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataPublishOnMeshPrefix
otError otNetDataPublishOnMeshPrefix( otInstance *aInstance, const otBorderRouterConfig *aConfig )
This function requests an on-mesh prefix to be published in the Thread Network Data.
This function requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Only stable entries can be published (ie, aConfig.mStable
MUST be TRUE).
A subsequent call to this method will replace a previous request for the same prefix. In particular, if the new call only changes the flags (eg, preference level) and the prefix is already added in the Network Data, the change to flags is immediately reflected in the Network Data. This ensures that existing entries in the Network Data are not abruptly removed. Note that a change in the preference level can potentially later cause the entry to be removed from the Network Data after determining there are other nodes that are publishing the same prefix with the same or higher preference.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataSetDnsSrpServicePublisherCallback
void otNetDataSetDnsSrpServicePublisherCallback( otInstance *aInstance, otNetDataDnsSrpServicePublisherCallback aCallback, void *aContext )
This function sets a callback for notifying when a published "DNS/SRP Service" is actually added to or removed from the Thread Network Data.
A subsequent call to this function replaces any previously set callback function.
This function requires the feature OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
to be enabled.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataSetPrefixPublisherCallback
void otNetDataSetPrefixPublisherCallback( otInstance *aInstance, otNetDataPrefixPublisherCallback aCallback, void *aContext )
This function sets a callback for notifying when a published prefix entry is actually added to or removed from the Thread Network Data.
A subsequent call to this function replaces any previously set callback function.
This function requires the feature OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
to be enabled.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otNetDataSteeringDataCheckJoiner
otError otNetDataSteeringDataCheckJoiner( otInstance *aInstance, const otExtAddress *aEui64 )
Check if the steering data includes a Joiner.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataSteeringDataCheckJoinerWithDiscerner
otError otNetDataSteeringDataCheckJoinerWithDiscerner( otInstance *aInstance, const struct otJoinerDiscerner *aDiscerner )
Check if the steering data includes a Joiner with a given discerner value.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otNetDataUnpublishDnsSrpService
void otNetDataUnpublishDnsSrpService( otInstance *aInstance )
Unpublishes any previously added DNS/SRP (Anycast or Unicast) Service entry from the Thread Network Data.
OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
must be enabled.
Details | |||
---|---|---|---|
مولفه های |
|
otNetDataUnpublishPrefix
otError otNetDataUnpublishPrefix( otInstance *aInstance, const otIp6Prefix *aPrefix )
Unpublishes a previously published On-Mesh or External Route Prefix.
OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
must be enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadBecomeChild
otError otThreadBecomeChild( otInstance *aInstance )
Attempt to reattach as a child.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadBecomeDetached
otError otThreadBecomeDetached( otInstance *aInstance )
Detach from the Thread network.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadDetachGracefully
otError otThreadDetachGracefully( otInstance *aInstance, otDetachGracefullyCallback aCallback, void *aContext )
This function notifies other nodes in the network (if any) and then stops Thread protocol operation.
It sends an Address Release if it's a router, or sets its child timeout to 0 if it's a child.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadDeviceRoleToString
const char * otThreadDeviceRoleToString( otDeviceRole aRole )
Convert the device role to human-readable string.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A string representing aRole . |
otThreadDiscover
otError otThreadDiscover( otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner, bool aEnableEui64Filtering, otHandleActiveScanResult aCallback, void *aCallbackContext )
This function starts a Thread Discovery scan.
Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||||
Return Values |
|
otThreadGetChildTimeout
uint32_t otThreadGetChildTimeout( otInstance *aInstance )
Get the Thread Child Timeout used when operating in the Child role.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Thread Child Timeout value in seconds. |
otThreadSetChildTimeout
otThreadGetDeviceRole
otDeviceRole otThreadGetDeviceRole( otInstance *aInstance )
Get the device role.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||
Return Values |
|
otThreadGetDomainName
const char * otThreadGetDomainName( otInstance *aInstance )
Get the Thread Domain Name.
This function is only available since Thread 1.2.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread Domain Name. |
otThreadSetDomainName
otThreadGetExtendedPanId
const otExtendedPanId * otThreadGetExtendedPanId( otInstance *aInstance )
Get the IEEE 802.15.4 Extended PAN ID.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the IEEE 802.15.4 Extended PAN ID. |
otThreadSetExtendedPanId
otThreadGetFixedDuaInterfaceIdentifier
const otIp6InterfaceIdentifier * otThreadGetFixedDuaInterfaceIdentifier( otInstance *aInstance )
Get the Interface Identifier manually specified for the Thread Domain Unicast Address.
This function is only available since Thread 1.2 when OPENTHREAD_CONFIG_DUA_ENABLE
is enabled.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Interface Identifier which was set manually, or NULL if none was set. |
otThreadSetFixedDuaInterfaceIdentifier
otThreadGetIp6Counters
const otIpCounters * otThreadGetIp6Counters( otInstance *aInstance )
Get the IPv6 counters.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the IPv6 counters. |
otThreadGetKeySequenceCounter
uint32_t otThreadGetKeySequenceCounter( otInstance *aInstance )
Get the thrKeySequenceCounter.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The thrKeySequenceCounter value. |
otThreadSetKeySequenceCounter
otThreadGetKeySwitchGuardTime
uint32_t otThreadGetKeySwitchGuardTime( otInstance *aInstance )
Get the thrKeySwitchGuardTime.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The thrKeySwitchGuardTime value (in hours). |
otThreadSetKeySwitchGuardTime
otThreadGetLeaderData
otError otThreadGetLeaderData( otInstance *aInstance, otLeaderData *aLeaderData )
This function get the Thread Leader Data.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetLeaderRloc
otError otThreadGetLeaderRloc( otInstance *aInstance, otIp6Address *aLeaderRloc )
This function returns a pointer to the Leader's RLOC.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetLeaderRouterId
uint8_t otThreadGetLeaderRouterId( otInstance *aInstance )
Get the Leader's Router ID.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Leader's Router ID. |
otThreadGetLeaderWeight
uint8_t otThreadGetLeaderWeight( otInstance *aInstance )
Get the Leader's Weight.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Leader's Weight. |
otThreadGetLinkLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetLinkLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
This function returns the Thread Link-Local All Thread Nodes multicast address.
The address is a link-local Unicast Prefix-Based Multcast Address [RFC 3306], with:
- flgs set to 3 (P = 1 and T = 1)
- scop set to 2
- plen set to 64
- network prefix set to the Mesh Local Prefix
- group ID set to 1
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to Thread Link-Local All Thread Nodes multicast address. |
otThreadGetLinkLocalIp6Address
const otIp6Address * otThreadGetLinkLocalIp6Address( otInstance *aInstance )
This function returns the Thread link-local IPv6 address.
The Thread link local address is derived using IEEE802.15.4 Extended Address as Interface Identifier.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to Thread link-local IPv6 address. |
otThreadGetLinkMode
otLinkModeConfig otThreadGetLinkMode( otInstance *aInstance )
Get the MLE Link Mode configuration.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The MLE Link Mode configuration. |
otThreadSetLinkMode
otThreadGetMeshLocalEid
const otIp6Address * otThreadGetMeshLocalEid( otInstance *aInstance )
This function returns a pointer to the Mesh Local EID address.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Mesh Local EID address. |
otThreadGetMeshLocalPrefix
const otMeshLocalPrefix * otThreadGetMeshLocalPrefix( otInstance *aInstance )
This function returns a pointer to the Mesh Local Prefix.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Mesh Local Prefix. |
otThreadGetMleCounters
const otMleCounters * otThreadGetMleCounters( otInstance *aInstance )
Get the Thread MLE counters.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread MLE counters. |
otThreadGetNetworkKey
void otThreadGetNetworkKey( otInstance *aInstance, otNetworkKey *aNetworkKey )
Get the Thread Network Key.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadSetNetworkKey
otThreadGetNetworkKeyRef
otNetworkKeyRef otThreadGetNetworkKeyRef( otInstance *aInstance )
Get the otNetworkKeyRef
for Thread Network Key.
This function requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | Reference to the Thread Network Key stored in memory. |
otThreadSetNetworkKeyRef
otThreadGetNetworkName
const char * otThreadGetNetworkName( otInstance *aInstance )
Get the Thread Network Name.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread Network Name. |
otThreadSetNetworkName
otThreadGetNextDiagnosticTlv
otError otThreadGetNextDiagnosticTlv( const otMessage *aMessage, otNetworkDiagIterator *aIterator, otNetworkDiagTlv *aNetworkDiagTlv )
This function gets the next Network Diagnostic TLV in the message.
A subsequent call to this function is allowed only when current return value is OT_ERROR_NONE.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetNextNeighborInfo
otError otThreadGetNextNeighborInfo( otInstance *aInstance, otNeighborInfoIterator *aIterator, otNeighborInfo *aInfo )
This function gets the next neighbor information.
It is used to go through the entries of the neighbor table.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetParentAverageRssi
otError otThreadGetParentAverageRssi( otInstance *aInstance, int8_t *aParentRssi )
The function retrieves the average RSSI for the Thread Parent.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetParentInfo
otError otThreadGetParentInfo( otInstance *aInstance, otRouterInfo *aParentInfo )
The function retrieves diagnostic information for a Thread Router as parent.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetParentLastRssi
otError otThreadGetParentLastRssi( otInstance *aInstance, int8_t *aLastRssi )
The function retrieves the RSSI of the last packet from the Thread Parent.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetPartitionId
uint32_t otThreadGetPartitionId( otInstance *aInstance )
Get the Partition ID.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The Partition ID. |
otThreadGetRealmLocalAllThreadNodesMulticastAddress
const otIp6Address * otThreadGetRealmLocalAllThreadNodesMulticastAddress( otInstance *aInstance )
This function returns the Thread Realm-Local All Thread Nodes multicast address.
The address is a realm-local Unicast Prefix-Based Multcast Address [RFC 3306], with:
- flgs set to 3 (P = 1 and T = 1)
- scop set to 3
- plen set to 64
- network prefix set to the Mesh Local Prefix
- group ID set to 1
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to Thread Realm-Local All Thread Nodes multicast address. |
otThreadGetRloc
const otIp6Address * otThreadGetRloc( otInstance *aInstance )
This function returns a pointer to the Thread Routing Locator (RLOC) address.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | A pointer to the Thread Routing Locator (RLOC) address. |
otThreadGetRloc16
uint16_t otThreadGetRloc16( otInstance *aInstance )
Get the RLOC16.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | The RLOC16. |
otThreadGetServiceAloc
otError otThreadGetServiceAloc( otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc )
This function retrieves the Service ALOC for given Service ID.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
| ||||||
Return Values |
|
otThreadGetVersion
uint16_t otThreadGetVersion( void )
This function gets the Thread protocol version.
Details | |
---|---|
Returns | the Thread protocol version. |
otThreadIsAnycastLocateInProgress
bool otThreadIsAnycastLocateInProgress( otInstance *aInstance )
This function indicates whether an anycast locate request is currently in progress.
This function is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
Details | |||
---|---|---|---|
مولفه های |
| ||
Returns | TRUE if an anycast locate request is currently in progress, FALSE otherwise. |
otThreadIsDiscoverInProgress
bool otThreadIsDiscoverInProgress( otInstance *aInstance )
This function determines if an MLE Thread Discovery is currently in progress.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadIsSingleton
bool otThreadIsSingleton( otInstance *aInstance )
This function indicates whether a node is the only router on the network.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadLocateAnycastDestination
otError otThreadLocateAnycastDestination( otInstance *aInstance, const otIp6Address *aAnycastAddress, otThreadAnycastLocatorCallback aCallback, void *aContext )
This function requests the closest destination of a given anycast address to be located.
This function is only available when OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE
is enabled.
If a previous request is ongoing, a subsequent call to this function will cancel and replace the earlier request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadRegisterParentResponseCallback
void otThreadRegisterParentResponseCallback( otInstance *aInstance, otThreadParentResponseCallback aCallback, void *aContext )
This function registers a callback to receive MLE Parent Response data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadResetIp6Counters
void otThreadResetIp6Counters( otInstance *aInstance )
Reset the IPv6 counters.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadResetMleCounters
void otThreadResetMleCounters( otInstance *aInstance )
Reset the Thread MLE counters.
Details | |||
---|---|---|---|
مولفه های |
|
otThreadSendAddressNotification
void otThreadSendAddressNotification( otInstance *aInstance, otIp6Address *aDestination, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid )
This function sends a Proactive Address Notification (ADDR_NTF.ntf) message.
This function is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadSendDiagnosticGet
otError otThreadSendDiagnosticGet( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount, otReceiveDiagnosticGetCallback aCallback, void *aCallbackContext )
Send a Network Diagnostic Get request.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||||||
Return Values |
|
otThreadSendDiagnosticReset
otError otThreadSendDiagnosticReset( otInstance *aInstance, const otIp6Address *aDestination, const uint8_t aTlvTypes[], uint8_t aCount )
Send a Network Diagnostic Reset request.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSendProactiveBackboneNotification
otError otThreadSendProactiveBackboneNotification( otInstance *aInstance, otIp6Address *aTarget, otIp6InterfaceIdentifier *aMlIid, uint32_t aTimeSinceLastTransaction )
This function sends a Proactive Backbone Notification (PRO_BB.ntf) message on the Backbone link.
This function is only available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSetChildTimeout
void otThreadSetChildTimeout( otInstance *aInstance, uint32_t aTimeout )
Set the Thread Child Timeout used when operating in the Child role.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetChildTimeout
otThreadSetDiscoveryRequestCallback
void otThreadSetDiscoveryRequestCallback( otInstance *aInstance, otThreadDiscoveryRequestCallback aCallback, void *aContext )
This function sets a callback to receive MLE Discovery Request data.
Details | |||||||
---|---|---|---|---|---|---|---|
مولفه های |
|
otThreadSetDomainName
otError otThreadSetDomainName( otInstance *aInstance, const char *aDomainName )
Set the Thread Domain Name.
This function is only available since Thread 1.2. This function succeeds only when Thread protocols are disabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetDomainName
otThreadSetEnabled
otError otThreadSetEnabled( otInstance *aInstance, bool aEnabled )
This function starts Thread protocol operation.
The interface must be up when calling this function.
Calling this function with aEnabled
set to FALSE stops any ongoing processes of detaching started by otThreadDetachGracefully() . Its callback will be called.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadSetExtendedPanId
otError otThreadSetExtendedPanId( otInstance *aInstance, const otExtendedPanId *aExtendedPanId )
Set the IEEE 802.15.4 Extended PAN ID.
This function can only be called while Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetExtendedPanId
otThreadSetFixedDuaInterfaceIdentifier
otError otThreadSetFixedDuaInterfaceIdentifier( otInstance *aInstance, const otIp6InterfaceIdentifier *aIid )
Set/Clear the Interface Identifier manually specified for the Thread Domain Unicast Address.
This function is only available since Thread 1.2 when OPENTHREAD_CONFIG_DUA_ENABLE
is enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetFixedDuaInterfaceIdentifier
otThreadSetJoinerAdvertisement
otError otThreadSetJoinerAdvertisement( otInstance *aInstance, uint32_t aOui, const uint8_t *aAdvData, uint8_t aAdvDataLength )
This method sets the Thread Joiner Advertisement when discovering Thread network.
Thread Joiner Advertisement is used to allow a Joiner to advertise its own application-specific information (such as Vendor ID, Product ID, Discriminator, etc.) via a newly-proposed Joiner Advertisement TLV, and to make this information available to Commissioners or Commissioner Candidates without human interaction.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
مولفه های |
| ||||||||
Return Values |
|
otThreadSetKeySequenceCounter
void otThreadSetKeySequenceCounter( otInstance *aInstance, uint32_t aKeySequenceCounter )
Set the thrKeySequenceCounter.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetKeySequenceCounter
otThreadSetKeySwitchGuardTime
void otThreadSetKeySwitchGuardTime( otInstance *aInstance, uint32_t aKeySwitchGuardTime )
Set the thrKeySwitchGuardTime.
Details | |||||
---|---|---|---|---|---|
مولفه های |
|
otThreadGetKeySwitchGuardTime
otThreadSetLinkMode
otError otThreadSetLinkMode( otInstance *aInstance, otLinkModeConfig aConfig )
Set the MLE Link Mode configuration.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetLinkMode
otThreadSetMeshLocalPrefix
otError otThreadSetMeshLocalPrefix( otInstance *aInstance, const otMeshLocalPrefix *aMeshLocalPrefix )
This function sets the Mesh Local Prefix.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadSetNetworkKey
otError otThreadSetNetworkKey( otInstance *aInstance, const otNetworkKey *aKey )
Set the Thread Network Key.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkKey
otThreadSetNetworkKeyRef
otError otThreadSetNetworkKeyRef( otInstance *aInstance, otNetworkKeyRef aKeyRef )
Set the Thread Network Key as a otNetworkKeyRef
.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
This function requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
to be enabled.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkKeyRef
otThreadSetNetworkName
otError otThreadSetNetworkName( otInstance *aInstance, const char *aNetworkName )
Set the Thread Network Name.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||
---|---|---|---|---|---|
مولفه های |
| ||||
Return Values |
|
otThreadGetNetworkName
Macros
OT_JOINER_ADVDATA_MAX_LENGTH
OT_JOINER_ADVDATA_MAX_LENGTH 64
Maximum AdvData Length of Joiner Advertisement.
OT_NEIGHBOR_INFO_ITERATOR_INIT
OT_NEIGHBOR_INFO_ITERATOR_INIT 0
Initializer for otNeighborInfoIterator.
OT_NETWORK_BASE_TLV_MAX_LENGTH
OT_NETWORK_BASE_TLV_MAX_LENGTH 254
Maximum value length of Thread Base TLV.
OT_NETWORK_DATA_ITERATOR_INIT
OT_NETWORK_DATA_ITERATOR_INIT 0
Value to initialize otNetworkDataIterator
.
OT_NETWORK_DIAGNOSTIC_CHILD_TABLE_ENTRY_SIZE
OT_NETWORK_DIAGNOSTIC_CHILD_TABLE_ENTRY_SIZE 3
Size of Network Diagnostic Child Table entry.
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT
OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT 0
Initializer for otNetworkDiagIterator.
OT_NETWORK_DIAGNOSTIC_TYPELIST_MAX_ENTRIES
OT_NETWORK_DIAGNOSTIC_TYPELIST_MAX_ENTRIES 19
Maximum Number of Network Diagnostic TLV Types to Request or Reset.
OT_NETWORK_MAX_ROUTER_ID
OT_NETWORK_MAX_ROUTER_ID 62
Maximum Router ID.
OT_SERVER_DATA_MAX_SIZE
OT_SERVER_DATA_MAX_SIZE 248
Max size of Server Data in bytes. Theoretical limit, practically much lower.
OT_SERVICE_DATA_MAX_SIZE
OT_SERVICE_DATA_MAX_SIZE 252
Max size of Service Data in bytes.
Resources
موضوعات مرجع OpenThread API از کد منبع موجود در GitHub سرچشمه می گیرند. برای اطلاعات بیشتر، یا مشارکت در اسناد ما، به منابع مراجعه کنید.