OkoLib
library for accessing Okolab devices
Changing property value

Functions

oko_res_type oko_PropertyWriteString (uint32_t deviceh, const char *name, const char *val, bool async)
 Change the current value of the specified string property. More...
 
oko_res_type oko_PropertyWriteInt (uint32_t deviceh, const char *name, int32_t val, char async)
 Change the current value of the specified integer property. More...
 
oko_res_type oko_PropertyWriteDouble (uint32_t deviceh, const char *name, double val, char async)
 Change the current value of the specified double property. More...
 
oko_res_type oko_PropertyWriteVolatileString (uint32_t deviceh, const char *name, const char *val, bool async)
 Change the current value of the specified string property in the volatile memory. More...
 
oko_res_type oko_PropertyWriteVolatileInt (uint32_t deviceh, const char *name, int32_t val, char async)
 Change the current value of the specified integer property in the volatile memory. More...
 
oko_res_type oko_PropertyWriteVolatileDouble (uint32_t deviceh, const char *name, double val, char async)
 Change the current value of the specified double property in the volatile memory. More...
 

Detailed Description

Function Documentation

oko_res_type oko_PropertyWriteDouble ( uint32_t  deviceh,
const char *  name,
double  val,
char  async 
)

Change the current value of the specified double property.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]async(1/0) set asynchronous mode on/off (If 1 then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.
oko_res_type oko_PropertyWriteInt ( uint32_t  deviceh,
const char *  name,
int32_t  val,
char  async 
)

Change the current value of the specified integer property.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]async(1/0) set asynchronous mode on/off (If 1 then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.
oko_res_type oko_PropertyWriteString ( uint32_t  deviceh,
const char *  name,
const char *  val,
bool  async 
)

Change the current value of the specified string property.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]asyncset asynchronous mode on/off (If true, then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.
oko_res_type oko_PropertyWriteVolatileDouble ( uint32_t  deviceh,
const char *  name,
double  val,
char  async 
)

Change the current value of the specified double property in the volatile memory.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]async(1/0) set asynchronous mode on/off (If 1 then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.
oko_res_type oko_PropertyWriteVolatileInt ( uint32_t  deviceh,
const char *  name,
int32_t  val,
char  async 
)

Change the current value of the specified integer property in the volatile memory.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]async(1/0) set asynchronous mode on/off (If 1 then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.
oko_res_type oko_PropertyWriteVolatileString ( uint32_t  deviceh,
const char *  name,
const char *  val,
bool  async 
)

Change the current value of the specified string property in the volatile memory.

Parameters
[in]devicehA valid device handle.
[in]nameThe property name.
[in]valValue to set.
[in]asyncset asynchronous mode on/off (If true, then the value will be wrote as soon as possible but not now)
Returns
OKO_OK upon success, an error code otherwise.