Astarte.API.Pairing.Devices.get_mqtt_v1_credentials

You're seeing just the function get_mqtt_v1_credentials, go back to Astarte.API.Pairing.Devices module for more information.
Link to this function

get_mqtt_v1_credentials(client, device_id, csr)

Specs

get_mqtt_v1_credentials(
  client :: Astarte.API.client(),
  device_id :: String.t(),
  csr :: String.t()
) :: Astarte.API.result()

Request 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.

csr is a PEM encoded certificate signing request.

Return values

  • {:ok, result} if the HTTP request can be performed. result will be a map with status, headers and body.
  • {:error, reason} if the HTTP request can't be performed.