diff --git a/src/HomeSpan.h b/src/HomeSpan.h index fc0a2fc..481e7f7 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -225,6 +225,7 @@ struct SpanService{ SpanService *setPrimary(); // sets the Service Type to be primary and returns pointer to self SpanService *setHidden(); // sets the Service Type to be hidden and returns pointer to self SpanService *addLink(SpanService *svc); // adds svc as a Linked Service and returns pointer to self + vector getLinks(){return(linkedServices);} // returns linkedServices vector for use as range in "for-each" loops int sprintfAttributes(char *cBuf); // prints Service JSON records into buf; return number of characters printed, excluding null terminator void validate(); // error-checks Service @@ -238,7 +239,6 @@ struct SpanService{ struct SpanCharacteristic{ - union UVal { BOOL_t BOOL; UINT8_t UINT8; diff --git a/src/src.ino b/src/src.ino index 2d66f71..df75ea3 100644 --- a/src/src.ino +++ b/src/src.ino @@ -74,7 +74,7 @@ void setup() { new Characteristic::Name("Light 3"); new Characteristic::TargetPosition(); new Characteristic::OzoneDensity(); - (new Characteristic::OzoneDensity())->addPerms(PW+AA)->removePerms(EV+PR); + (new Characteristic::OzoneDensity())->addPerms(PW|AA)->removePerms(EV|PR); } // end of setup()