diff --git a/src/HomeSpan.h b/src/HomeSpan.h index fed75c0..fc0a2fc 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -566,7 +566,38 @@ struct SpanCharacteristic{ } } // setVal() + + SpanCharacteristic *setPerms(uint8_t perms){ + this->perms=perms; + homeSpan.configLog+=String(" \u2b0c Change Permissions for ") + String(hapName) + " with AID=" + String(aid) + ", IID=" + String(iid) + ":"; + + char pNames[][7]={"PR","PW","EV","AA","TW","HD","WR"}; + char sep=' '; + + for(uint8_t i=0;i<7;i++){ + if(perms & (1<addPerms(PW+AA)->removePerms(EV+PR); } // end of setup()