Beginning to add homie convention compatibility https://homieiot.github.io/specification/

This commit is contained in:
2019-01-04 04:10:10 +03:00
parent 4508600cde
commit 8d87f09e29
16 changed files with 382 additions and 19 deletions

View File

@@ -250,9 +250,8 @@ int Item::Ctrl(char * payload, boolean send){
int Item::Ctrl(short cmd, short n, int *Parameters, boolean send) {
debugSerial<<F(" MEM=")<<freeRam()<<F(" Cmd=")<<cmd<<F(" Par: ");
if (!itemArr) return -1;
int Par[MAXCTRLPAR] = {0, 0, 0};
if (Parameters)
for (short i=0;i<n && i<MAXCTRLPAR;i++){