49 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
50 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
51 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
58 virtual bool SetPowerPort(
size_t port,
bool enabled)
override;
59 virtual bool SetDewPort(
size_t port,
bool enabled,
double dutyCycle)
override;
60 virtual bool SetVariablePort(
size_t port,
bool enabled,
double voltage)
override;
64 virtual bool SetUSBPort(
size_t port,
bool enabled)
override;
68 bool sendCommand(
const unsigned char*
cmd,
unsigned int cmd_len,
unsigned char* res,
int res_len);
71 bool setupComplete {
false };
72 bool processButtonSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n);
76 static double convert4BytesToDouble(
const unsigned char* data,
double scale);
80 static double CalculateVP(
double humidity,
double svp);
81 static double CalculateDewPointFromVP(
double vp);
86 SVB_SENSOR_DS18B20_TEMP,
87 SVB_SENSOR_SHT40_TEMP,
88 SVB_SENSOR_SHT40_HUMIDITY,
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool SetAutoDewEnabled(size_t port, bool enabled) override
SetAutoDewEnabled Enable/disable automatic dew control.
virtual ~SVBONYPowerBox()=default
virtual bool SetLEDEnabled(bool enabled) override
SetLEDEnabled Enable/disable power LEDs.
virtual bool SetUSBPort(size_t port, bool enabled) override
SetUSBPort Set USB port on/off.
virtual bool SetDewPort(size_t port, bool enabled, double dutyCycle) override
SetDewPort Set DEW/Dew port duty cycle.
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual const char * getDefaultName() override
virtual bool SetVariablePort(size_t port, bool enabled, double voltage) override
SetVariablePort Set variable voltage port.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool CyclePower() override
CyclePower Cycle power to all ports.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool SetPowerPort(size_t port, bool enabled) override
SetPowerPort Set power port on/off.
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...