12 #ifndef _ASTARTE_PAIRING_H_
13 #define _ASTARTE_PAIRING_H_
25 const char *credentials_secret;
26 } __attribute__((deprecated(
"Please use astarte_pairing_config_t")));
28 #pragma GCC diagnostic push
29 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31 #pragma GCC diagnostic pop
49 const astarte_pairing_config_t *config,
char *out,
size_t length);
73 const astarte_pairing_config_t *config,
const char *csr,
char *out,
size_t length);
86 const astarte_pairing_config_t *config,
char *out,
size_t length);
Astarte types and defines.
astarte_err_t
Astarte return codes.
Definition: astarte.h:28
astarte_err_t astarte_pairing_register_device(const astarte_pairing_config_t *config)
register a device.
astarte_err_t astarte_pairing_get_credentials_secret(const astarte_pairing_config_t *config, char *out, size_t length)
get the credentials secret.
astarte_err_t astarte_pairing_get_mqtt_v1_broker_url(const astarte_pairing_config_t *config, char *out, size_t length)
get the Astarte MQTT v1 broker URL.
astarte_err_t astarte_pairing_get_mqtt_v1_credentials(const astarte_pairing_config_t *config, const char *csr, char *out, size_t length)
obtain a new Astarte MQTT v1 certificate.
Definition: astarte_pairing.h:20