int vscphlp_makeLevel2FloatMeasurementEvent( vscpEvent *pEvent, uint16_t type, double value, uint8_t unit, uint8_t sensoridx, uint8_t zone, uint8_t subzone )
Pointer to event that data should be written to.
The VSCP type for the event. Must be one of the types in CLASS1.MEASUREMENT
Floating point measurement value.
Unit (0-255) for the measurement.
Sensor index (0-255) for the measurement.
Zone (0-255) for the measurement.
Sub zone (0-255) for the measurement.
VSCP_ERROR_SUCCESS is returned if the measurement event is constructed correctly, VSCP_ERROR_ERROR is returned if not.
Construct a Level II floating point measurement event from supplied data. Note that the GUID must be set externally.
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).