A Parser takes raw input from the Sensor API and converts the data into a unified format used by the Dashboard. In addition the parser can access an API to set device level properties and additional meta information outside of the actual data record.
Parsers are organized in 3 levels:
- Hardcoded default parser
- DeviceType parser
- Device parser
When no parser on device level is defined, the parser for the device type will be executed. When no parser for the device type is defined, a hardcoded default parser will be executed.
Functions to cast Types, convert between Hex/Base64/Bytes and so on
Lobaro Platform Parser functions
Functions to access functions of the platform like WMBUS Parsing an so on.
Device Related Functions
Functions Related to the Device the Parser is executed for. All functions are optional. Not calling them will not change any data.
Access Fields of the Device
Update the physical location of the sensor
Set an device config value, displayed on the "Config" tab of the device
Get Configuration Value by Name: (Configuration set for the Device in the Platform at the moment. Returns always the old Value. New Value that will be updated after the parser finished by "setConfig" calls are not considered.)
Set an arbitrary device property, displayed on the "Overview" tab of the device
Get an arbitrary device property, displayed on the "Overview" tab of the device
Set the Sensor time of the current data record. Used for display, filter, sorting
Get the time when the data was received by the server in ms, compatible with