Cloud Authentication
data class CloudAuthentication(val token: String, val tokenSource: CloudAuthentication.TokenSource, val cloudTokenCoapType: Int?, val payloadSignatureCoapType: Int?)
Represents cloud authentication features like cloud token, its configuration, CoAP options to send cloud token and ECDSA payload signature.
Parameters
token
cloud token used by the sensor for identification in Cloud when TokenSource.CUSTOM mode is selected
token Source
to which sensor will send the data
cloud Token Coap Type
id of CoAP option to send cloud token or null if should be sent in the payload
payload Signature Coap Type
id of CoAP option to send ECDSA payload signature or null if payload signature should not be sent
Constructors
Link copied to clipboard
constructor(token: String, tokenSource: CloudAuthentication.TokenSource, cloudTokenCoapType: Int?, payloadSignatureCoapType: Int?)