Device is a special application that represents a single physical device. It is
benefical to see the difference between random application and application that
runs in dedicated device and controls such device. This allows generic
identification of such devices in the SHV tree.
The call to :ls(".app") can be used to identify application as being a
device.
This method can provide serial number of the device if that is something the
device has. It is allowed to provide Null in case there is no serial number
assigned to this device.
The .device/alerts node is property node. Its implementation
is optional and thus if device doesn't raise any alerts then this node should
not be present.
Parameter
Result
Null | Int
[i{...},...]
0 (date): date and time of the alert creation.
1 (level): int with notice level. This is value between 0 and 63 that can
be used to sort alerts. The classification is to the three named levels:
Notice: from 0 to 20. These are alerts signal that do not affect nor primary
nor secondary device's functionality but require some attention. These can
also be potential issues that would affect the device's secondary
functionality.
Warning: from 21 to 42. These are levels to be used for issues not affecting
the device's primary functionality or notices for possible issues that would
affect the primary functionality.
Error: from 43 to 63. These should be used for issues affecting the primary
functionality of the device.
2 (id): string with notice identifier. This identifier should be chosen to
be unique for not for the single device but also between devices. It should be
short but at the same time precise and unique. The benefit is human
readability. This ID then should be used in device's manual.
3 (info): any SHV value that provides additional info. This is optional
field that can be used to pass some additional info related to the alert. The
value interpretation should be documented but is outside of the SHV scope.