ModularSensors > Files > sensors / KellerParent.h

KellerParent.h file

Contains the KellerParent sensor subclass, itself used as a parent class for all Keller modbus sensors.

This depends on the KellerModbus and SensorModbusMaster libraries.

Documentation for the Keller Protocol commands and responses, along with information about the various variables, can be found in the EnviroDIY KellerModbus library at: https://github.com/EnviroDIY/KellerModbus

Classes

class KellerParent
The Sensor sub-class for all Keller water level sensors.

Defines

#define KELLER_NUM_VARIABLES = 3
Sensor::_numReturnedValues; the Keller level sensors can report 3 values.

Pressure

The pressure variable from a Keller modbus sensor

#define KELLER_PRESSURE_VAR_NUM = 0
Variable number; pressure is stored in sensorValues[0].
#define KELLER_PRESSURE_VAR_NAME = "pressureGauge"
Variable name in ODM2 controlled vocabulary; "pressureGauge".
#define KELLER_PRESSURE_UNIT_NAME = "millibar"
Variable unit name in ODM2 controlled vocabulary; "millibar".

Temperature

The temperature variable from a Keller modbus sensor

#define KELLER_TEMP_VAR_NUM = 1
Variable number; temperature is stored in sensorValues[1].
#define KELLER_TEMP_VAR_NAME = "temperature"
Variable name in ODM2 controlled vocabulary; "temperature".
#define KELLER_TEMP_UNIT_NAME = "degreeCelsius"
Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)

Height

The height variable from a Keller modbus sensor

#define KELLER_HEIGHT_VAR_NUM = 2
Variable number; height is stored in sensorValues[2].
#define KELLER_HEIGHT_VAR_NAME = "gaugeHeight"
Variable name in ODM2 controlled vocabulary; "gaugeHeight".
#define KELLER_HEIGHT_UNIT_NAME = "meter"
Variable unit name in ODM2 controlled vocabulary; "meter".