25static constexpr int FILTERCUBE_MAX_FILTERS = 5;
38 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
46 bool readCurrentFilterFromStatus(
int &position);
47 bool sendCommand(
const char *command,
char *response,
int responseLen,
int timeoutSeconds);
49 char mFirmware[32] {};
52 char mFilterLetters[FILTERCUBE_MAX_FILTERS] {};
57 IText DeviceInfoT[2] {};
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
bool Handshake() override
perform handshake with device to check communication
bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
bool GetFilterNames() override
Obtains a list of filter names from the hardware and initializes the FilterNameTP property....
bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
bool SelectFilter(int position) override
Select a new filter position.
bool SetFilterNames() override
Set filter names as defined by the client for each filter position. The desired filter names are stor...
const char * getDefaultName() override
int QueryFilter() override
Return current filter position.
Number vector property descriptor.
Text vector property descriptor.