Class Campbell#

Class Documentation#

class Campbell#

Campbell interface class.

This class defines the interface for a Campbell device.

Public Functions

inline Campbell()#
inline void set_device(const std::string dev)#
long open_device()#

open serial connection to CR1000

long close_device()#

close serial connection to CR1000

long read_data()#

trigger CR1000 to send data, then read it

long read_data(bool showoutliers)#

trigger CR1000 to send data, then read it

Public Members

std::mutex datamap_mtx#
std::map<int, std::string> sensor_names#

STL map of sensor_names indexed by Campbell channel number.

std::map<std::string, mysqlx::Value> datamap#

STL map of sensor values indexed by sensor name.