OkoLib
library for accessing Okolab devices
Data logging

Functions

oko_res_type oko_StartPropertyLogging (uint32_t deviceh, const char *filename, uint32_t freq_ms)
 Start the property logging feature for the specified device. More...
 
oko_res_type oko_StopPropertyLogging (uint32_t deviceh)
 Stop the property logging feature for the specified device. More...
 
oko_res_type oko_PropertyLoggingGetFileName (uint32_t deviceh, char *filename)
 Get the file path used to log the specified device. More...
 

Detailed Description

Function Documentation

◆ oko_PropertyLoggingGetFileName()

oko_res_type oko_PropertyLoggingGetFileName ( uint32_t  deviceh,
char *  filename 
)

Get the file path used to log the specified device.

Parameters
[in]devicehA valid device handle.
[in]filenameThe file path to which data will be stored.
Returns
OKO_OK upon success, an error code otherwise.

◆ oko_StartPropertyLogging()

oko_res_type oko_StartPropertyLogging ( uint32_t  deviceh,
const char *  filename,
uint32_t  freq_ms 
)

Start the property logging feature for the specified device.

Parameters
[in]devicehA valid device handle.
[in]filenameThe file path on which data will be stored.
[in]freq_msThe milliseconds between each property update.
Returns
OKO_OK upon success, an error code otherwise.

◆ oko_StopPropertyLogging()

oko_res_type oko_StopPropertyLogging ( uint32_t  deviceh)

Stop the property logging feature for the specified device.

Parameters
[in]devicehA valid device handle.
Returns
OKO_OK upon success, an error code otherwise.