47 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
48 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
49 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
65 virtual bool SetPowerPort(
size_t port,
bool enabled)
override;
66 virtual bool SetDewPort(
size_t port,
bool enabled,
double dutyCycle)
override;
67 virtual bool SetVariablePort(
size_t port,
bool enabled,
double voltage)
override;
71 virtual bool SetUSBPort(
size_t port,
bool enabled)
override;
80 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
101 bool setPowerEnabled(uint8_t port,
bool enabled);
102 bool setPowerOnBoot();
105 bool setAutoDewEnabled(
bool enabled);
106 bool setDewPWM(uint8_t
id, uint8_t value);
114 bool sendCommand(
const char *
cmd,
char *res);
117 bool setupComplete {
false };
139 std::vector<std::string> lastSensorData;
140 char stopChar { 0xD };
142 static constexpr const uint8_t PEGASUS_TIMEOUT {3};
143 static constexpr const uint8_t PEGASUS_LEN {128};
144 static constexpr const char *DEW_TAB {
"Dew"};
145 static constexpr const char *ENVIRONMENT_TAB {
"Environment"};
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...
Provides interface to implement weather reporting and safety monitoring functionality.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool SetUSBPort(size_t port, bool enabled) override
SetUSBPort Set USB port on/off.
virtual bool SetPowerPort(size_t port, bool enabled) override
Power Interface Implementations.
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
virtual bool SetAutoDewEnabled(size_t port, bool enabled) override
SetAutoDewEnabled Enable/disable automatic dew control.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
const char * getDefaultName() override
virtual bool SetVariablePort(size_t port, bool enabled, double voltage) override
SetVariablePort Set variable voltage port.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool CyclePower() override
CyclePower Cycle power to all ports.
virtual bool SetLEDEnabled(bool enabled) override
SetLEDEnabled Enable/disable power LEDs.
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 bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool SetDewPort(size_t port, bool enabled, double dutyCycle) override
SetDewPort Set DEW/Dew port duty cycle.
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...