Removed Characteristic::ConfiguredNameStatic() end updated Television Example
Characteristic::ConfiguredNameStatic() is no longer needed since you can now change permissions on ConfiguredStatic to remove PW with removePerms(PW). Updated Television Example accordingly. To Do: Add getLinks() and setPerms/addPerms/removePerms to API Reference Documentation
This commit is contained in:
parent
fcf715d874
commit
b5f4592b29
|
|
@ -193,7 +193,7 @@ void setup() {
|
||||||
new Characteristic::TargetVisibilityState(0);
|
new Characteristic::TargetVisibilityState(0);
|
||||||
|
|
||||||
SpanService *hdmi10 = new Service::InputSource();
|
SpanService *hdmi10 = new Service::InputSource();
|
||||||
new Characteristic::ConfiguredNameStatic("HDMI 10"); // Source Name is static and cannot be edited in Settings Screen
|
(new Characteristic::ConfiguredName("HDMI 10"))->removePerms(PW); // Source Name permissions changed and now cannot be edited in Settings Screen
|
||||||
new Characteristic::Identifier(10);
|
new Characteristic::Identifier(10);
|
||||||
new Characteristic::IsConfigured(1); // Source included in the Settings Screen...
|
new Characteristic::IsConfigured(1); // Source included in the Settings Screen...
|
||||||
new Characteristic::CurrentVisibilityState(0); // ...and included in the Selection List...
|
new Characteristic::CurrentVisibilityState(0); // ...and included in the Selection List...
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,6 @@ struct HapCharacteristics {
|
||||||
HAPCHAR( CoolingThresholdTemperature, D, PR+PW+EV, FLOAT, false );
|
HAPCHAR( CoolingThresholdTemperature, D, PR+PW+EV, FLOAT, false );
|
||||||
HAPCHAR( ColorTemperature, CE, PR+PW+EV, UINT32, false );
|
HAPCHAR( ColorTemperature, CE, PR+PW+EV, UINT32, false );
|
||||||
HAPCHAR( ConfiguredName, E3, PW+PR+EV, STRING, false );
|
HAPCHAR( ConfiguredName, E3, PW+PR+EV, STRING, false );
|
||||||
HAPCHAR( ConfiguredNameStatic, E3, PR+EV, STRING, false );
|
|
||||||
HAPCHAR( ContactSensorState, 6A, PR+EV, UINT8, true );
|
HAPCHAR( ContactSensorState, 6A, PR+EV, UINT8, true );
|
||||||
HAPCHAR( CurrentAmbientLightLevel, 6B, PR+EV, FLOAT, false );
|
HAPCHAR( CurrentAmbientLightLevel, 6B, PR+EV, FLOAT, false );
|
||||||
HAPCHAR( CurrentHorizontalTiltAngle, 6C, PR+EV, INT, false );
|
HAPCHAR( CurrentHorizontalTiltAngle, 6C, PR+EV, INT, false );
|
||||||
|
|
|
||||||
|
|
@ -420,7 +420,6 @@ namespace Characteristic {
|
||||||
CREATE_CHAR(uint32_t,ColorTemperature,200,140,500);
|
CREATE_CHAR(uint32_t,ColorTemperature,200,140,500);
|
||||||
CREATE_CHAR(uint8_t,ContactSensorState,1,0,1);
|
CREATE_CHAR(uint8_t,ContactSensorState,1,0,1);
|
||||||
CREATE_CHAR(const char *,ConfiguredName,"unnamed",0,1);
|
CREATE_CHAR(const char *,ConfiguredName,"unnamed",0,1);
|
||||||
CREATE_CHAR(const char *,ConfiguredNameStatic,"unnamed",0,1);
|
|
||||||
CREATE_CHAR(double,CurrentAmbientLightLevel,1,0.0001,100000);
|
CREATE_CHAR(double,CurrentAmbientLightLevel,1,0.0001,100000);
|
||||||
CREATE_CHAR(int,CurrentHorizontalTiltAngle,0,-90,90);
|
CREATE_CHAR(int,CurrentHorizontalTiltAngle,0,-90,90);
|
||||||
CREATE_CHAR(uint8_t,CurrentAirPurifierState,1,0,2);
|
CREATE_CHAR(uint8_t,CurrentAirPurifierState,1,0,2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue