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();
107 TemperatureDifference,
110 CloudAmbientTemperature,
168 CONFIG_TIMEZONE_OFFSET,
197 bool sendCommand(
const char *
cmd,
char *res);
198 std::vector<std::string> split(
const std::string &input,
const std::string ®ex);
205 bool m_SetupComplete {
false };
209 std::vector<std::string> m_Sensors;
210 std::vector<std::string> m_Clouds;
211 std::vector<std::string> m_SkyQuality;
212 std::vector<std::string> m_GPS;
214 static constexpr const uint8_t PEGASUS_STOP_CHAR {0xA};
215 static constexpr const uint8_t PEGASUS_TIMEOUT {3};
216 static constexpr const uint8_t PEGASUS_LEN {128};
217 static constexpr const char *SENSORS_TAB {
"Sensors"};
218 static constexpr const char *SKYQUALITY_TAB {
"Sky Quality"};
219 static constexpr const char *CLOUDS_TAB {
"Clouds"};
220 static constexpr const char *ENVIRONMENT_TAB {
"Environment"};
221 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 and safety monitoring functionality.
virtual void TimerHit() override
Callback function to be called once SetTimer duration elapses.
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
Initialize 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...