|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| void | trustm_update_state (trustm_state_t new_state, const char *status_code, const char *detail) |
| A setter with a timestamp, not a dispatcher; set WAITING_* before the transport starts. | |
| void | trustm_reset_state (void) |
| Back to IDLE, correlation id zeroed — this is what ends a run; call it at every exit. | |
| const char * | trustm_current_correlation_id (void) |
| The in-flight run's id, or NULL; NULL means discard the inbound bundle — the replay defence. | |
| uint16_t | trustm_requested_target_oid (void) |
| The target OID the last request named; weak — NULL-check and fall back to 0xE0E1. | |
| uint16_t | trustm_requested_anchor_oid (void) |
| The trust anchor the last request named; weak — same pattern, default 0xE0E8. | |
Five functions. One writes the state machine, one ends a run, three read what the in-flight request named. Four of the five are weak-consumed (The six weak-consumed symbols — NULL-check contract); trustm_update_state() is the exception.
| void trustm_update_state | ( | trustm_state_t | new_state, |
| const char * | status_code, | ||
| const char * | detail ) |
A setter with a timestamp, not a dispatcher; set WAITING_* before the transport starts.
Move the state machine, and put it back at IDLE. status_code and detail are surfaced on the provisioning screen.
| void trustm_reset_state | ( | void | ) |
Back to IDLE, correlation id zeroed — this is what ends a run; call it at every exit.
| const char * trustm_current_correlation_id | ( | void | ) |
The in-flight run's id, or NULL; NULL means discard the inbound bundle — the replay defence.
| uint16_t trustm_requested_target_oid | ( | void | ) |
The target OID the last request named; weak — NULL-check and fall back to 0xE0E1.
The OIDs the in-flight request named, and the id that correlates the platform's reply with it. NULL when nothing is in flight.
| uint16_t trustm_requested_anchor_oid | ( | void | ) |
The trust anchor the last request named; weak — same pattern, default 0xE0E8.