From 269d749b5bba49c836e6411badbff63052e8a221 Mon Sep 17 00:00:00 2001 From: Gregg Date: Tue, 16 Feb 2021 07:19:48 -0600 Subject: [PATCH] Update src.ino --- src/src.ino | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/src.ino b/src/src.ino index 434b93d..122b785 100644 --- a/src/src.ino +++ b/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()