From fd0046c7f2e914498fceeb63119345b74f5966f2 Mon Sep 17 00:00:00 2001 From: Gregg Date: Thu, 4 Aug 2022 18:34:46 -0500 Subject: [PATCH] Update ProgrammableHub2.ino --- Other Examples/ProgrammableHub2/ProgrammableHub2.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Other Examples/ProgrammableHub2/ProgrammableHub2.ino b/Other Examples/ProgrammableHub2/ProgrammableHub2.ino index 303f970..5753929 100644 --- a/Other Examples/ProgrammableHub2/ProgrammableHub2.ino +++ b/Other Examples/ProgrammableHub2/ProgrammableHub2.ino @@ -140,6 +140,10 @@ void addLight(int index, const char *name, boolean isDimmable, colorType_t color new Service::AccessoryInformation(); new Characteristic::Identify(); new Characteristic::Name(name); + char sNum[32]; + sprintf(sNum,"Light-%02d",index+1); + new Characteristic::SerialNumber(sNum); + new Service::LightBulb(); new Characteristic::On(0,true); if(isDimmable)