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

Go to the source code of this file.

Data Structures

Macros

#define BL_F_LOSSY   (1u << 0)
#define BL_F_BULK_RING   (1u << 1)
#define BENTO_LINK_MAX_BACKENDS   (4u)

Typedefs

typedef struct bento_link_s bento_link_t

Functions

bool bento_link_register (bento_link_t *link)
 API สำหรับผู้เขียน backend: ลงทะเบียน bento_link_t ของ transport เพียงครั้งเดียว
bento_link_tbento_link_get (const char *name)
 ค้นหา backend ตามชื่อ; คืน NULL เมื่อไม่มี — ต้องตรวจ NULL เสมอ
bento_link_tbento_link_at (uint32_t index)
 ไล่รายการใน registry; คืน NULL เมื่อเลยรายการสุดท้าย

Macro Definition Documentation

◆ BL_F_LOSSY

#define BL_F_LOSSY   (1u << 0)

◆ BL_F_BULK_RING

#define BL_F_BULK_RING   (1u << 1)

◆ BENTO_LINK_MAX_BACKENDS

#define BENTO_LINK_MAX_BACKENDS   (4u)

Typedef Documentation

◆ bento_link_t

typedef struct bento_link_s bento_link_t