SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
Loading...
Searching...
No Matches
nus_protocol.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void nus_protocol_init (void)
 Internal one-time init — ble_nus_init() does it; never call directly.
void nus_on_rx_bytes (const uint8_t *buf, size_t len)
 Feed NUS RX bytes to the framer; newline framed, 4 KB overflow with RESYNC.
void nus_protocol_tick (uint32_t now_ms)
 Passive 30 s keepalive watchdog; call at about 10 Hz. No caller anywhere.
void nus_protocol_send_permission (const char *id, size_t id_len, int decision_approve)
 Emit the permission frame for a stored prompt id after a human decision. No caller anywhere.
void nus_protocol_set_link_encrypted (int encrypted)
 Stack-internal: set from the BTM_ENCRYPTION_STATUS_EVT handler.