48 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
49 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
50 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
79 SET_CURRENT_POSITION_OPEN,
80 SET_CURRENT_POSITION_CLOSE
97 bool sendCommand(std::string command,
char *response,
bool waitForAnswer);
98 bool getStartupData();
103 void updateCoverStatus(
char* res);
104 void setParkCapStatusAsClosed();
105 void setParkCapStatusAsOpen();
106 IPState moveDustCap(
int degrees);
107 bool setCurrentPositionToOpenPosition();
108 bool setCurrentPositionToClosedPosition();
109 bool processConfigurationButtonSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n);
112 bool switchOffLightBox();
113 void setLightBoxStatusAsSwitchedOff();
114 void setLightBoxBrightnesStatusToValue(uint16_t value);
122 IText FirmwareT[1] {};
125 void setNumberOfStepsStatusValue(
int value);
126 int NumberOfStepsBeetweenOpenAndCloseState = 0;
127 int NumberOfDegreesSinceLastOpenPositionSet = 0;
132 ISwitch ControlPositionNegativeDegreesConfigurationV[3] {};
134 ISwitch ControlPositionPositiveDegreesConfigurationV[3] {};
136 ISwitch DefinePositionConfigurationV[2] {};
139 bool hasWandererSentAnError(
char* response);
140 void displayConfigurationMessage();
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 SetLightBoxBrightness(uint16_t value) override
setBrightness Set light level. Must be implemented in the child class, if supported.
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
virtual bool EnableLightBox(bool enable) override
EnableLightBox Turn on/off on a light box. Must be implemented in the child class.
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual IPState ParkCap() override
Park dust cap (close cover). Must be implemented by child.
bool isCoverCurrentlyOpen() const
virtual IPState UnParkCap() override
unPark dust cap (open cover). Must be implemented by child.
const char * getDefaultName() override
bool isLightCurrentlyOn() const
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual ~WandererCover()=default
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 initProperties() override
Initialize properties initial state and value. The child class must implement this function.
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...
Switch vector property descriptor.
Text vector property descriptor.