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;
68 bool getWeatherData();
69 bool getWeatherOffsets();
72 bool getWifiChannel();
74 bool getHotspotStatus();
76 bool getCurrentWifi();
77 bool setTemperatureOffset(
double value);
78 bool setHumidityOffset(
double value);
79 bool setDewHeater(uint8_t value);
80 bool setAutoDew(
bool enable);
81 bool setDewAggressiveness(uint8_t level);
83 bool setThreshold(uint8_t value);
84 bool setCapAngle(uint16_t angle);
85 bool setAutoClose(
bool enable);
86 bool setHotspotStatus(
bool enable);
87 bool setHotspot(
const char *ssid,
const char *password);
88 bool connectToWifi(
const char *ssid,
const char *password);
89 bool scanWifiNetworks();
90 bool setWifiChannel(uint8_t channel);
91 bool wifiFactoryReset();
92 std::vector<std::string> split(
const std::string &input,
const std::string &sep);
95 bool sendCommand(
const char *
cmd,
char *response,
int timeout_sec = 3);
96 void updateFirmwareVersion();
100 IText FirmwareT[1] {};
152 std::vector<std::string> lastWeatherData;
153 std::vector<std::string> lastStatusData;
155 static constexpr const char *ENVIRONMENT_TAB {
"Environment"};
156 static constexpr const char *LIGHTBOX_TAB {
"Light Box"};
157 static constexpr const char *DUSTCAP_TAB {
"Dust Cap"};
158 static constexpr const char *DEW_TAB {
"Dew Control"};
159 static constexpr const char *STATUS_TAB {
"Overview"};
160 static constexpr const char *NETWORK_TAB {
"Network"};
161 static constexpr const uint8_t NEO_LEN {64};
182 CAP_STATUS_PARKED = 1,
183 CAP_STATUS_UNPARKED = 3,
189 STATUS_LIGHT_INTENSITY = 0,
191 STATUS_CAP_ACTUAL_ANGLE,
192 STATUS_CAP_TARGET_ANGLE,
196 STATUS_DEW_AGGRESSIVE,
222 OFFSET_TEMPERATURE = 0,
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 SetLightBoxBrightness(uint16_t value) override
setBrightness Set light level. Must be implemented in the child class, if supported.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], 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.
virtual IPState UnParkCap() override
unPark dust cap (open cover). Must be implemented by child.
virtual IPState ParkCap() override
Park dust cap (close cover). Must be implemented by child.
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 IPState AbortCap() override
Abort motion. Must be implemented by child.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
const char * getDefaultName() override
virtual bool EnableLightBox(bool enable) override
EnableLightBox Turn on/off on a light box. Must be implemented in the child class.
virtual ~PegasusFlatMasterNeo() override=default
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
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 updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
Text vector property descriptor.