Astarte.API.Pairing.Devices.verify_mqtt_v1_credentials
You're seeing just the function
verify_mqtt_v1_credentials
, go back to Astarte.API.Pairing.Devices module for more information.
Link to this function
verify_mqtt_v1_credentials(client, device_id, certificate)
Specs
verify_mqtt_v1_credentials( client :: Astarte.API.client(), device_id :: String.t(), certificate :: String.t() ) :: Astarte.API.result()
Verify credentials for the Astarte MQTT V1 protocol (i.e. an SSL client certificate).
client
is a Pairing API client created with Astarte.API.Pairing.client/3
.
device_id
is the device id of the device requesting the certificate.
certificate
is the PEM encoded certificate to be verified.
Return values
{:ok, result}
if the HTTP request can be performed.result
will be a map withstatus
,headers
andbody
.{:error, reason}
if the HTTP request can't be performed.