Update src.ino
This commit is contained in:
parent
121864ba36
commit
269d749b5b
20
src/src.ino
20
src/src.ino
|
|
@ -33,16 +33,16 @@ void setup() {
|
|||
new Service::HAPProtocolInformation(); // Create the HAP Protcol Information Service
|
||||
new Characteristic::Version("1.1.0"); // Set the Version Characteristic to "1.1.0" as required by HAP
|
||||
|
||||
SpanService *v1=new Service::Valve();
|
||||
new Characteristic::Active();
|
||||
new Characteristic::InUse();
|
||||
new Characteristic::ValveType();
|
||||
SpanService *v2=new Service::Valve();
|
||||
new Characteristic::Active();
|
||||
new Characteristic::InUse();
|
||||
new Characteristic::ValveType();
|
||||
(new Service::Faucet())->addLink(v1)->addLink(v2);
|
||||
new Characteristic::Active();
|
||||
new Service::LightBulb();
|
||||
new Characteristic::On();
|
||||
new Characteristic::Brightness();
|
||||
new Characteristic::Name("Light 1");
|
||||
new Service::LightBulb();
|
||||
new Characteristic::On();
|
||||
new Characteristic::Brightness();
|
||||
new Characteristic::Name("Light 2");
|
||||
new Service::Switch();
|
||||
new Characteristic::On();
|
||||
|
||||
} // end of setup()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue