|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| int | publish_csr (uint8_t *csr, size_t csr_length, uint16_t target_oid, uint16_t trust_anchor_oid, uint32_t payload_version) |
| Publish an already-built CSR for the platform to sign; weak — NULL-check first. Arms the ingest. | |
| int | tesaiot_publish_protected_update (const char *target_oid, const char *trust_anchor_oid, uint32_t payload_version, bool with_csr) |
| Ask the platform for a Protected Update (OIDs as hex strings); weak — NULL-check first. | |
Two functions: the publishers that arm a run — they generate the correlation id (Three rules that recur on every topic rule 3). Both are weak-consumed (The six weak-consumed symbols — NULL-check contract): NULL-check the pointer first.
| int publish_csr | ( | uint8_t * | csr, |
| size_t | csr_length, | ||
| uint16_t | target_oid, | ||
| uint16_t | trust_anchor_oid, | ||
| uint32_t | payload_version ) |
Publish an already-built CSR for the platform to sign; weak — NULL-check first. Arms the ingest.
Publish a CSR the caller has already built, for the platform to sign. target_oid is the slot the resulting certificate belongs in and trust_anchor_oid the anchor that will authorise writing it.
| int tesaiot_publish_protected_update | ( | const char * | target_oid, |
| const char * | trust_anchor_oid, | ||
| uint32_t | payload_version, | ||
| bool | with_csr ) |
Ask the platform for a Protected Update (OIDs as hex strings); weak — NULL-check first.
Ask the platform for a Protected Update of target_oid, optionally enrolling a fresh key with a CSR in the same exchange. The OIDs are hex strings, e.g. "E0E1".