Diffusion C API  6.4.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
diffusion-double.h File Reference

Functions

bool read_diffusion_double_value (const DIFFUSION_VALUE_T *const value, double *double_value, DIFFUSION_API_ERROR *error)
 Read a double from the diffusion value. More...
 
bool write_diffusion_double_value (double value, const BUF_T *buf)
 Write a double value into a BUF_T for an update. More...
 

Function Documentation

bool read_diffusion_double_value ( const DIFFUSION_VALUE_T *const  value,
double *  double_value,
DIFFUSION_API_ERROR error 
)

Read a double from the diffusion value.

Parameters
valuethe diffusion value.
double_valuepointer to set the double value to.
errorpopulated if an error occurs. Can be NULL.
Returns
true if the value was successfully set in the provided double_value pointer. False otherwise.
bool write_diffusion_double_value ( double  value,
const BUF_T buf 
)

Write a double value into a BUF_T for an update.

Parameters
valuedouble to be written into the BUF_T
Returns
a BUF_T containing CBOR encoded data for a double topic update