44 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
45 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
61 {
"clouds",
"WEATHER_CLOUDS" },
62 {
"temp",
"WEATHER_TEMPERATURE" },
63 {
"wind",
"WEATHER_WIND_SPEED" },
64 {
"gust",
"WEATHER_WIND_GUST" },
65 {
"rain",
"WEATHER_RAIN" },
66 {
"lightmpsas",
"WEATHER_LIGHT" },
67 {
"safe",
"WEATHER_ISSAFE" },
68 {
"hum",
"WEATHER_HUMIDITY" },
69 {
"relpress",
"WEATHER_PRESSURE" }
74 std::map<std::string, std::string> createMap(std::string
const &s);
76 bool createProperties();
81 std::map<std::string, std::string> weatherMap;
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
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.
const char * getDefaultName() override
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
bool Disconnect() override
Disconnect from device.
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...
INDI::PropertySwitch criticalSP