diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 664d4b9..40f872a 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -601,6 +601,12 @@ struct SpanCharacteristic{ return(setPerms(perms&(~dPerms))); } + SpanCharacteristic *setDescription(const char *c){ + desc = (char *)realloc(desc, strlen(c) + 1); + strcpy(desc, c); + return(this); + } + }; ///////////////////////////////