SDK for TESAIoT Dev Kit
API reference & tutorials (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 stop — drops advertising and the link, keeps the AIROC stack resident; no error signal.
int bento_buddy_request_start(void)
Bring up the AIROC BLE host stack and NUS advertising on demand; task context only.
void bento_buddy_auto_start_install(void)
Legacy one-shot auto-start task; no caller anywhere — replaced by the chip-power pattern.