31#ifdef _USE_SYSTEM_JSONLIB
32#include <nlohmann/json.hpp>
47 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
48 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
50 virtual bool loadConfig(
bool silent =
false,
const char *property =
nullptr)
override;
59 bool makeAlpacaRequest(
const std::string& path,
nlohmann::json& response,
bool isPut =
false);
60 bool retryRequest(
const std::function<
bool()>& request);
68 bool LastParseSuccess {
false};
bool Disconnect() override
Disconnect from device.
virtual IPState updateWeather() override
updateWeather Update weather conditions from device or service. The function should not change the st...
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
const char * getDefaultName() override
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
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 ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual ~WeatherSafetyAlpaca()=default
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool loadConfig(bool silent=false, const char *property=nullptr) override
Load the last saved configuration file.
a class to store JSON values