31 #define MAX_FRAME_LENGTH 150
32 #define MAX_NAME_LENGTH 25
33 #define MAX_VALUE_LENGTH 125
42 #define ACTION_CALIB 2
102 sprintf(
uid,
"%04x", _uid );
114 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
115 bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
116 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
124 void genCatProps(
const char* catName,
json& categ );
126 bool initProperties()
override;
127 bool updateProperties()
override;
128 void clearProperties( );
130 bool Connect()
override;
131 bool Disconnect()
override;
138 std::vector<Action*> _actions;
140 bool sendCmd(
UsisResponse* rsp,
const char* text, ... );
141 bool _send(
const char* text, va_list lst );
143 void scanProperties( );
146 bool findBoard(
const char* boardName,
json* board_def );
Action(uint32_t _uid, const std::string &_cmd, PropType _type)
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
const char * getDefaultName() override
static void __update(void *ptr)
bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
a class to store JSON values
basic_json<> json
default specialization
ISwitchVectorProperty _vec
INumberVectorProperty _vec
char buffer[MAX_FRAME_LENGTH]
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.