SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
Loading...
Searching...
No Matches
ble_nus_lazy.h
Go to the documentation of this file.
1/*******************************************************************************
2 * File Name: ble_nus_lazy.h
3 *
4 * Description: Public interface for the deferred Bento Buddy BLE bring-up.
5 * See ble_nus_lazy.c for behavioural contract.
6 *
7 ******************************************************************************/
8
9#ifndef BLE_NUS_LAZY_H
10#define BLE_NUS_LAZY_H
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/* Bring up the AIROC BLE host stack + NUS advertising on demand.
17 * Returns: 0 = newly started, 1 = already running, -1 = init failed. */
19
20/* Tear down the stack if it is up. Idempotent. */
22
23/* Spawn a one-shot FreeRTOS task that brings BLE up ~3 s after the
24 * scheduler starts. Intended for headless smoke tests where no human
25 * taps Start BLE on the LCD. Safe to call from main() before
26 * vTaskStartScheduler. */
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif /* BLE_NUS_LAZY_H */
void bento_buddy_request_stop(void)
หยุดแบบ soft — ยุติการกระจายสัญญาณและตัด link แต่คง AIROC stack ไว้ในหน่วยความจำ ไม่มีสัญญาณแจ้งข้อผิ...
int bento_buddy_request_start(void)
นำ AIROC BLE host stack และการกระจายสัญญาณ (advertising) ของ NUS ขึ้นมาเมื่อมีการร้องขอ ใช้ได้เฉพาะใน...
void bento_buddy_auto_start_install(void)
task auto-start แบบครั้งเดียวของเดิม ไม่มีผู้เรียกที่ใดเลย — ถูกแทนที่ด้วยรูปแบบ chip-power แล้ว