46 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
47 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
87 bool readSkyQuality();
88 void measureSkyQuality();
106 TemperatureDifference,
109 CloudAmbientTemperature,
166 CONFIG_TIMEZONE_OFFSET,
195 bool sendCommand(
const char *
cmd,
char *res);
196 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
203 bool m_SetupComplete {
false };
207 std::vector<std::string> m_Sensors;
208 std::vector<std::string> m_Clouds;
209 std::vector<std::string> m_SkyQuality;
210 std::vector<std::string> m_GPS;
212 static constexpr
const uint8_t PEGASUS_STOP_CHAR {0xA};
213 static constexpr
const uint8_t PEGASUS_TIMEOUT {3};
214 static constexpr
const uint8_t PEGASUS_LEN {128};
215 static constexpr
const char *SENSORS_TAB {
"Sensors"};
216 static constexpr
const char *SKYQUALITY_TAB {
"Sky Quality"};
217 static constexpr
const char *CLOUDS_TAB {
"Clouds"};
218 static constexpr
const char *ENVIRONMENT_TAB {
"Environment"};
219 static constexpr
const char *GPS_TAB {
"GPS"};
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
The Timer class provides repetitive and single-shot timers.
Provides interface to implement weather reporting functionality.
virtual void TimerHit() override
TimerHit Keep calling updateGPS() until it is successfull, if it fails upon first connection.
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save refresh period
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
const char * getDefaultName() override
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
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 IPState updateGPS() override
updateGPS Retrieve Location & Time from GPS. Update LocationNP & TimeTP properties (value and state) ...
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...