55 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
56 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
57 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
61 virtual bool Connect()
override;
69 void processShutdown();
83 IText SettingsT[4] {};
84 enum {INDISERVER_HOST, INDISERVER_PORT, SHUTDOWN_SCRIPT};
97 enum { TRIGGER_CLIENT, TRIGGER_WEATHER };
101 IText ActiveDeviceT[3] {};
102 enum { ACTIVE_TELESCOPE, ACTIVE_DOME, ACTIVE_WEATHER };
105 std::unique_ptr<WatchDogClient> m_WatchDogClientInstance;
111 uint32_t m_INDIServerPort { 7624 };
115 bool m_IsMountParked {
false };
117 bool m_IsDomeParked {
false };
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
The Timer class provides repetitive and single-shot timers.
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
Initialize 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.