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

THROWS ERRORS

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

RETURNS

a DeviceDetails instance representing the input raw CBOR data