vscphlp_makeLevel2StringMeasurementEvent

int vscphlp_makeLevel2StringMeasurementEvent( 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 string measurement event from supplied data. Note that the GUID must be set externally.

See Also

vscphlp_makeLevel2FloatMeasurementEvent


Very Simple Control Protocol
Wed Jul 04 2018 19:49:59 GMT+0000 (UTC)
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 ""