SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
Loading...
Searching...
No Matches
bento_fw.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define BENTO_BUDDY_FW_VERSION   "1.4.0"

Typedefs

typedef struct jsmntok jsmntok_t

Functions

void bento_fw_handle_query (const char *json, const jsmntok_t *toks, int n_toks)
 handler ของ bento.fw.query: เป็น probe อ่านอย่างเดียวที่ต้นทุนต่ำสำหรับ metadata เรียกจาก dispatcher เท่านั้น
void bento_fw_handle_update_begin (const char *json, const jsmntok_t *toks, int n_toks)
 handler ของ bento.fw.update.begin: เปิดคำถามยืนยัน Y/N บนจอ LCD และเลื่อน ack ไปจนกว่าจะมีการตัดสินใจ
void bento_fw_emit_boot_complete (void)
 ส่ง bento.fw.update.complete หนึ่งครั้งต่อการบูตหนึ่งรอบ ตอนเปลี่ยนสถานะเป็น CONNECTED ครั้งแรก
void bento_fw_on_user_decision (int approve)
 ส่งผลการตัดสินใจ Y/N จากจอ LCD ของ CM55 สำหรับคำถามยืนยันปัจจุบัน เป็น no-op เมื่อไม่มีคำถามค้างอยู่

Macro Definition Documentation

◆ BENTO_BUDDY_FW_VERSION

#define BENTO_BUDDY_FW_VERSION   "1.4.0"

Typedef Documentation

◆ jsmntok_t

typedef struct jsmntok jsmntok_t