Apama Connectivity with Device Integration Platform Documentation 10.0 : Event Protocols : Measurement Events
Measurement Events
The com.apama.dip.Measurement events are sent to com.apama.dip.Measurement.CHANNEL that is dip.measurements when onApplicationInitialized() is called (unless subscribeToAllMeasures is set to false in the DeviceIntegrationPlatform.yaml file). For example, c8y_LightMeasurement or c8y_DistanceMeasurement. These events may be sent before all assets are sent. Measurement events contain the assetID of the source of the measurement, the type of measurement, timestamp, and a dictionary of values which contain the numeric value, units and optional type, quantity and state.
Examples of measurement events:
com.apama.dip.Measurement("c8y_LightMeasurement","12346081",1464359004.89,
{"e":com.apama.dip.MeasurementValue(108.1,"lux","","","",{})},{})

com.apama.dip.Measurement("c8y_DistanceMeasurement","12346082",1464359005.396,
{"distance":com.apama.dip.MeasurementValue(344,"mm","","","",{})},{})
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback