int vscphlp_convertIntegerToNormalizedEventData( unsigned char *pdata, unsigned short *psize, unsigned long long val64, unsigned char unit, unsigned char sensoridx )
Pointer to data buffer that will get the result. The buffer should be large enough to hold the normalized data. That is bigger than eight bytes.
The size of the written data will be returned here.
Floating point value to write as a 64-bit float.
A unit value 0-3
A sensor index value 0-7
VSCP_ERROR_SUCCESS is returned on success.
Write an integer value as measurement event data in normalized integer form.
Example will be added. TODO
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).