XNova CRYPT,SHAREDSECRET,PROTECTED_PINS,PULSEPIN12

This commit is contained in:
Климов Андрей Николаевич
2023-10-08 17:43:30 +03:00
parent 6cd4f1d82a
commit e93e52702e
34 changed files with 173 additions and 68 deletions

View File

@@ -103,7 +103,7 @@ extern aJsonObject *items;
extern short thermoSetCurTemp(char *name, float t);
int txt2cmd (char * payload);
bool digGroup (aJsonObject *itemArr, itemCmd *cmd = NULL, char* subItem = NULL);
bool digGroup (aJsonObject *itemArr, itemCmd *cmd = NULL, char* subItem = NULL, bool authorized = false);
class Item
{
public:
@@ -148,8 +148,8 @@ class Item
inline int On (){return Ctrl(itemCmd(ST_VOID,CMD_ON));};
inline int Off(){return Ctrl(itemCmd(ST_VOID,CMD_OFF));};
inline int Toggle(){return Ctrl(itemCmd(ST_VOID,CMD_TOGGLE));};
int scheduleCommand(itemCmd cmd);
int scheduleOppositeCommand(itemCmd cmd);
int scheduleCommand(itemCmd cmd, bool authorized);
int scheduleOppositeCommand(itemCmd cmd,bool authorized);
int isScheduled();
protected: