If present, should be compatible with the Type field
mask
String
N
Only valid where Type is one of the unsigned integer types
shift
String
N
Only valid where Type is one of the unsigned integer types
scale
String
N
Only valid where Type is one of the integer or float types
offset
String
N
Only valid where Type is one of the integer or float types
base
String
N
Only valid where Type is one of the integer or float types
assertion
String
N
String value to which the reading is compared
mediaType
String
N
Only required when valueType is Binary
DeviceCommand
Field Name
Type
Required?
Notes
name
String
Y
Must be unique in this profile. A DeviceCommand with a single DeviceResource is redundant unless renaming and/or restricting R/W access. For example DeviceResource is RW, but DeviceCommand is read-only. Only allow unreserved characters as defined in https://tools.ietf.org/html/rfc3986#section-2.3.
isHidden
Bool
N
Expose the DeviceCommand to Command Service or not, default false
readWrite
Enum
Y
R, W, RW
resourceOperations
Array of ResourceOperation
Y
ResourceOperation
Field Name
Type
Required?
Notes
deviceResource
String
Y
Must name a DeviceResource in this profile
defaultValue
String
N
If present, should be compatible with the Type field of the named DeviceResource
mappings
String-String Map
N
Map the GET resourceOperation value to another string value