ใช้คำสั่ง ping กับผู้ส่ง
ไฟล์นี้มี OpenThread API สำหรับโมดูลผู้ส่ง ping
สรุป
Typedef |
|
|---|---|
otPingSenderConfig
|
typedefstruct otPingSenderConfig
แสดงการกำหนดค่าคำขอ ping |
otPingSenderReply
|
typedefstruct otPingSenderReply
แสดงการตอบกลับที่ใช้คำสั่ง ping |
otPingSenderReplyCallback)(const otPingSenderReply *aReply, void *aContext)
|
typedefvoid(*
ประเภทตัวชี้จะระบุโค้ดเรียกกลับเพื่อแจ้งเตือนการรับข้อความตอบกลับโดยใช้คำสั่ง ping |
otPingSenderStatistics
|
typedefstruct otPingSenderStatistics
แสดงสถิติของคำขอใช้คำสั่ง ping |
otPingSenderStatisticsCallback)(const otPingSenderStatistics *aStatistics, void *aContext)
|
typedefvoid(*
ประเภทตัวชี้จะระบุโค้ดเรียกกลับเพื่อรายงานสถิติการใช้คำสั่ง ping |
ฟังก์ชัน |
|
|---|---|
otPingSenderPing(otInstance *aInstance, const otPingSenderConfig *aConfig)
|
เริ่มการปิง
|
otPingSenderStop(otInstance *aInstance)
|
void
หยุดการใช้คำสั่ง ping ที่ดำเนินการอยู่
|
โครงสร้าง |
|
|---|---|
| otPingSenderConfig |
แสดงการกำหนดค่าคำขอ ping |
| otPingSenderReply |
แสดงการตอบกลับที่ใช้คำสั่ง ping |
| otPingSenderStatistics |
แสดงสถิติของคำขอใช้คำสั่ง ping |
Typedef
otPingSenderReplyCallback
void(* otPingSenderReplyCallback)(const otPingSenderReply *aReply, void *aContext)
ประเภทตัวชี้จะระบุโค้ดเรียกกลับเพื่อแจ้งเตือนการรับข้อความตอบกลับโดยใช้คำสั่ง ping
| รายละเอียด | |||||
|---|---|---|---|---|---|
| พารามิเตอร์ |
|
||||
otPingSenderStatistics
struct otPingSenderStatistics otPingSenderStatistics
แสดงสถิติของคำขอใช้คำสั่ง ping
otPingSenderStatisticsCallback
void(* otPingSenderStatisticsCallback)(const otPingSenderStatistics *aStatistics, void *aContext)
ประเภทตัวชี้จะระบุโค้ดเรียกกลับเพื่อรายงานสถิติการใช้คำสั่ง ping
| รายละเอียด | |||||
|---|---|---|---|---|---|
| พารามิเตอร์ |
|
||||
ฟังก์ชัน
otPingSenderPing
otError otPingSenderPing( otInstance *aInstance, const otPingSenderConfig *aConfig )
เริ่มการปิง
| รายละเอียด | |||||||
|---|---|---|---|---|---|---|---|
| พารามิเตอร์ |
|
||||||
| แสดงผลค่า |
|
||||||
otPingSenderStop
void otPingSenderStop( otInstance *aInstance )
หยุดการใช้คำสั่ง ping ที่ดำเนินการอยู่
| รายละเอียด | |||
|---|---|---|---|
| พารามิเตอร์ |
|
||
แหล่งข้อมูล
หัวข้ออ้างอิง API ของ OpenThread จะมาจากซอร์สโค้ดซึ่งพร้อมใช้งานใน GitHub ดูข้อมูลเพิ่มเติมหรือมีส่วนร่วมในเอกสารประกอบของเราได้ที่แหล่งข้อมูล