Package com.framed.io.dispatch
Class DataPointParser
java.lang.Object
com.framed.io.dispatch.DataPointParser
Utility for converting a JSON bus message into a
DataPoint.-
Method Summary
-
Method Details
-
parse
Converts a JSON bus message into aDataPoint.The timestamp is parsed using
Timer.formatterand interpreted as UTC.- Parameters:
jsonObject- the JSON object carryingvalue,timestamp,channelID,deviceIDandclassName- Returns:
- the datapoint decoded from the given JSON object
- Throws:
Exception- if a required field is missing or the timestamp cannot be parsed
-
