DeviceDetails.decode()

DESCRIPTION

Create a DeviceDetails instance based on raw CBOR data.

DECLARATION

    public static func decode(cbor: Data) throws -> DeviceDetails 

PARAMETERS

cbor:
Raw CBOR data (as received through a CoAP call to a Nabto Embedded SDK device).

ERRORS

Throws the following errors:

INVALID_RESPONSE:
If the specified data could not be decoded into a DeviceDetails instance.

RETURN VALUES

a DeviceDetails instance representing the input raw CBOR data

EXAMPLES

None.