vscphlp_makeLevel2FloatMeasurementEvent

int vscphlp_makeLevel2FloatMeasurementEvent( vscpEvent *pEvent, 
                                    uint16_t type,
                                    double value,
                                    uint8_t unit,
                                    uint8_t sensoridx,
                                    uint8_t zone,
                                    uint8_t subzone )

Parameters

pEvent

Pointer to event that data should be written to.

type

The VSCP type for the event. Must be one of the types in CLASS1.MEASUREMENT

value

Floating point measurement value.

unit

Unit (0-255) for the measurement.

sensoridx

Sensor index (0-255) for the measurement.

zone

Zone (0-255) for the measurement.

subzone

Sub zone (0-255) for the measurement.

Return Value

VSCP_ERROR_SUCCESS is returned if the measurement event is constructed correctly, VSCP_ERROR_ERROR is returned if not.

Description

Construct a Level II floating point measurement event from supplied data. Note that the GUID must be set externally.

See Also

vscphlp_makeLevel2StringMeasurementEvent


Very Simple Control Protocol
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).

results matching ""

    No results matching ""