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

Go to the source code of this file.

Functions

int sensor_stream_init (void)
 One-time task spawn, invoked lazily by sensor_stream_start() — never call directly.
int sensor_stream_start (const char *id, uint32_t interval_ms)
 Start streaming one sensor; the shipped caller clamps the interval to [10, 5000] ms.
void sensor_stream_stop (const char *id)
 Stop the active stream; idempotent.
uint32_t sensor_stream_dropped_count (void)
 Samples the NUS TX path refused (link down or buffer full); board-info diagnostics.
bool sensor_stream_is_active (void)
 True iff a stream is active; the update handler's "busy" guard.
void sensor_stream_stop_all (void)
 Stop any active stream unconditionally — the quiesce-before-update path.