|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| int | nus_emit_event (const char *json) |
| ส่งเฟรม event แบบ JSON หนึ่งเฟรม (ห้ามใส่ newline ปิดท้าย — ฟังก์ชันเติม LF ให้เอง) คืนค่า 0/-1 เท่านั้น | |
| void | nus_events_push_pending_ack (const char *id) |
| ใส่ id ของ notification ลงใน FIFO ของ ack ที่ค้างอยู่ ตัดรายการซ้ำ และนำรายการเก่าสุดออกเมื่อเต็ม | |
| bool | nus_events_drain_pending_ack (const char *id) |
| เอา id ออกจาก FIFO คืน true เมื่อพบ — เป็นเส้นทาง bento.user.ack ของการแตะบน CM55 | |
| size_t | nus_events_pending_ack_count (void) |
| จำนวน id ที่อยู่ใน FIFO ใช้กับ telemetry และ unit test บนเครื่อง host ไม่มีผู้เรียกที่ใดเลย | |