54 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
55 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
56 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
63 virtual bool Connect()
override;
84 IText SettingsT[4] {};
85 enum {INDISERVER_HOST, INDISERVER_PORT, SHUTDOWN_SCRIPT};
98 enum { TRIGGER_CLIENT, TRIGGER_WEATHER };
102 IText ActiveDeviceT[3] {};
103 enum { ACTIVE_TELESCOPE, ACTIVE_DOME, ACTIVE_WEATHER };
108 int32_t m_WatchDogTimer {-1};
110 int32_t m_WeatherAlertTimer {-1};
112 uint32_t m_INDIServerPort { 7624 };
116 bool m_IsMountParked {
false };
118 bool m_IsDomeParked {
false };
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool Disconnect() override
Disconnect from device.
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 initProperties() override
Initilize properties initial state and value. The child class must implement this function.
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 const char * getDefaultName() override
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
@ WATCHDOG_CLIENT_STARTED
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.