28#ifdef _USE_SYSTEM_JSONLIB
29#include <nlohmann/json.hpp>
36#define MAX_FRAME_LENGTH 150
37#define MAX_NAME_LENGTH 25
38#define MAX_VALUE_LENGTH 125
107 sprintf(
uid,
"%04x", _uid );
119 bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
120 bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
121 bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
129 void genCatProps(
const char* catName,
json& categ );
133 void clearProperties( );
143 std::vector<Action*> _actions;
145 bool sendCmd(
UsisResponse* rsp,
const char* text, ... );
146 bool _send(
const char* text, va_list lst );
148 void scanProperties( );
151 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...
virtual bool updateProperties()
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool Disconnect()
Disconnect from device.
virtual bool initProperties()
Initialize properties initial state and value. The child class must implement this function.
virtual bool Connect()
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
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
struct _ISwitchVectorProperty ISwitchVectorProperty
struct _ITextVectorProperty ITextVectorProperty
struct _INumberVectorProperty INumberVectorProperty
*brief user defined string literal for JSON values *sa std::size_t n
basic_json<> json
default specialization
ISwitchVectorProperty _vec
INumberVectorProperty _vec
char buffer[MAX_FRAME_LENGTH]