Made FirmwareRevision Characteristic PR+EV instead of just PR

Allows for updating FirmwareRevision, which HomeKit seems to poll every 60 seconds.
This commit is contained in:
Gregg 2022-04-26 21:45:29 -05:00
parent b97775263d
commit 044fe22b1f
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ struct HapCharacteristics {
HAPCHAR( CurrentVisibilityState, 135, PR+EV, UINT8, true );
HAPCHAR( FilterLifeLevel, AB, PR+EV, FLOAT, false );
HAPCHAR( FilterChangeIndication, AC, PR+EV, UINT8, true );
HAPCHAR( FirmwareRevision, 52, PR, STRING, true );
HAPCHAR( FirmwareRevision, 52, PR+EV, STRING, true );
HAPCHAR( HardwareRevision, 53, PR, STRING, true );
HAPCHAR( HeatingThresholdTemperature, 12, PR+PW+EV, FLOAT, false );
HAPCHAR( HoldPosition, 6F, PW, BOOL, true );

View File

@ -596,7 +596,7 @@ struct SpanCharacteristic{
void setString(const char *val){
if((perms & EV) == 0){
Serial.printf("\n*** WARNING: Attempt to update Characteristic::%s with setVal() ignored. No NOTIFICATION permission on this characteristic\n\n",hapName);
Serial.printf("\n*** WARNING: Attempt to update Characteristic::%s with setString() ignored. No NOTIFICATION permission on this characteristic\n\n",hapName);
return;
}