Astarte device API for Zephyr 0.7.2
Astarte device SDK for Zephyr RTOS
|
Functions for device pairing. More...
Macros | |
#define | ASTARTE_PAIRING_CRED_SECR_LEN 44 |
Number of characters in the string representation of a Base64 encoded credential secret. | |
Functions | |
astarte_result_t | astarte_pairing_register_device (int32_t timeout_ms, const char *device_id, char *out_cred_secr, size_t out_cred_secr_size) |
Register a new device to Astarte. | |
Functions for device pairing.
#define ASTARTE_PAIRING_CRED_SECR_LEN 44 |
Number of characters in the string representation of a Base64 encoded credential secret.
astarte_result_t astarte_pairing_register_device | ( | int32_t | timeout_ms, |
const char * | device_id, | ||
char * | out_cred_secr, | ||
size_t | out_cred_secr_size ) |
Register a new device to Astarte.
Will perform the registration for a new device to the Astarte instance.
[in] | timeout_ms | Timeout to use for the registration, in ms. |
[in] | device_id | Unique identifier to use to register the device instance. This identifier is a base64 URL encoded 128 bits value. |
[out] | out_cred_secr | Returned credential secret. |
[in] | out_cred_secr_size | Size of the output buffer for the credential secret. |