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 );
131 bool initProperties()
override;
132 bool updateProperties()
override;
133 void clearProperties( );
135 bool Connect()
override;
136 bool Disconnect()
override;
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...
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.