เซิร์ฟเวอร์
โมดูลนี้มีฟังก์ชันสำหรับจัดการข้อมูลเครือข่ายภายในด้วยเซิร์ฟเวอร์ OpenThread
สรุป
| ฟังก์ชัน | |
|---|---|
| otServerAddService(otInstance *aInstance, const otServiceConfig *aConfig) | เพิ่มการกำหนดค่าบริการให้กับข้อมูลเครือข่ายภายใน  | 
| otServerGetNetDataLocal(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength) | ให้สำเนาข้อมูลเครือข่ายเทรดในเครื่องแบบเต็มหรือเสถียร  | 
| otServerGetNextService(otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig) | รับบริการถัดไปในข้อมูลเครือข่ายภายใน  | 
| otServerRegister(otInstance *aInstance) | ลงทะเบียนข้อมูลเครือข่ายท้องถิ่นกับผู้นำทันที  | 
| otServerRemoveService(otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength) | นำการกำหนดค่าบริการออกจากข้อมูลเครือข่ายภายใน  | 
ฟังก์ชัน
otServerAddService
otError otServerAddService( otInstance *aInstance, const otServiceConfig *aConfig )
เพิ่มการกำหนดค่าบริการให้กับข้อมูลเครือข่ายภายใน
| รายละเอียด | |||||||
|---|---|---|---|---|---|---|---|
| พารามิเตอร์ | 
 | ||||||
| แสดงผลค่า | 
 | ||||||
otServerRemoveService
otServerRegister
otServerGetNetDataLocal
otError otServerGetNetDataLocal( otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength )
ให้สำเนาข้อมูลเครือข่ายเทรดในเครื่องแบบเต็มหรือเสถียร
| รายละเอียด | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| พารามิเตอร์ | 
 | ||||||||
otServerGetNextService
otError otServerGetNextService( otInstance *aInstance, otNetworkDataIterator *aIterator, otServiceConfig *aConfig )
รับบริการถัดไปในข้อมูลเครือข่ายภายใน
| รายละเอียด | |||||||
|---|---|---|---|---|---|---|---|
| พารามิเตอร์ | 
 | ||||||
| แสดงผลค่า | 
 | ||||||
otServerRegister
otError otServerRegister( otInstance *aInstance )
ลงทะเบียนข้อมูลเครือข่ายท้องถิ่นกับผู้นำทันที
| รายละเอียด | |||
|---|---|---|---|
| พารามิเตอร์ | 
 | ||
| แสดงผลค่า | 
 | ||
otServerAddService
otServerRemoveService
otServerRemoveService
otError otServerRemoveService( otInstance *aInstance, uint32_t aEnterpriseNumber, const uint8_t *aServiceData, uint8_t aServiceDataLength )
นำการกำหนดค่าบริการออกจากข้อมูลเครือข่ายภายใน
| รายละเอียด | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| พารามิเตอร์ | 
 | ||||||||
| แสดงผลค่า | 
 | ||||||||
otServerAddService
otServerRegister
แหล่งข้อมูล
หัวข้ออ้างอิง API ของ OpenThread จะมาจากซอร์สโค้ดซึ่งพร้อมใช้งานใน GitHub ดูข้อมูลเพิ่มเติมหรือมีส่วนร่วมในเอกสารประกอบของเราได้ที่แหล่งข้อมูล