Update src.ino

This commit is contained in:
Gregg 2021-02-16 07:19:48 -06:00
parent 121864ba36
commit 269d749b5b
1 changed files with 10 additions and 10 deletions

View File

@ -33,16 +33,16 @@ void setup() {
new Service::HAPProtocolInformation(); // Create the HAP Protcol Information Service 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 new Characteristic::Version("1.1.0"); // Set the Version Characteristic to "1.1.0" as required by HAP
SpanService *v1=new Service::Valve(); new Service::LightBulb();
new Characteristic::Active(); new Characteristic::On();
new Characteristic::InUse(); new Characteristic::Brightness();
new Characteristic::ValveType(); new Characteristic::Name("Light 1");
SpanService *v2=new Service::Valve(); new Service::LightBulb();
new Characteristic::Active(); new Characteristic::On();
new Characteristic::InUse(); new Characteristic::Brightness();
new Characteristic::ValveType(); new Characteristic::Name("Light 2");
(new Service::Faucet())->addLink(v1)->addLink(v2); new Service::Switch();
new Characteristic::Active(); new Characteristic::On();
} // end of setup() } // end of setup()