diff --git a/examples/17-LinkedServices/17-LinkedServices.ino b/examples/17-LinkedServices/17-LinkedServices.ino index 77708d0..78555d7 100644 --- a/examples/17-LinkedServices/17-LinkedServices.ino +++ b/examples/17-LinkedServices/17-LinkedServices.ino @@ -35,6 +35,12 @@ // // //////////////////////////////////////////////////////////// +// WARNING: THIS EXAMPLE STOPPED WORKING CORRECTLY SOMEWHERE AROUND THE IOS 15.2 OR IOS 15.3 UPDATE +// AND DOES NOT WORK AS OF IOS 15.4.1 +// +// THE PROBLEM APPEARS TO BE IN THE RENDERING OF INDIVIDUAL VALVES IN THE HOME APP INTERFACE. THEY +// APPEAR IN THE EVE HOMEKIT APPLICATION, BUT NOT APPLE'S HOME APP. + #include "HomeSpan.h" // HAP normally treats multiple Services created within the same Accessory as independent of one another. However, certain HAP Services are designed to represent a central point diff --git a/examples/18-SavingStatus/18-SavingStatus.ino b/examples/18-SavingStatus/18-SavingStatus.ino index f9f8031..821913e 100644 --- a/examples/18-SavingStatus/18-SavingStatus.ino +++ b/examples/18-SavingStatus/18-SavingStatus.ino @@ -1,7 +1,7 @@ /********************************************************************************* * MIT License * - * Copyright (c) 2021 Gregg E. Berman + * Copyright (c) 2021-2022 Gregg E. Berman * * https://github.com/HomeSpan/HomeSpan * @@ -38,7 +38,6 @@ #include "HomeSpan.h" #include "DEV_LED.h" -#include "DEV_Identify.h" void setup() { @@ -76,16 +75,19 @@ void setup() { homeSpan.begin(Category::Bridges,"HomeSpan Bridge"); new SpanAccessory(); - new DEV_Identify("Bridge #1","HomeSpan","123-ABC","HS Bridge","0.9",3); - new Service::HAPProtocolInformation(); - new Characteristic::Version("1.1.0"); + new Service::AccessoryInformation(); + new Characteristic::Identify(); new SpanAccessory(); - new DEV_Identify("LED 1","HomeSpan","123-ABC","20mA LED","0.9",0); + new Service::AccessoryInformation(); + new Characteristic::Identify(); + new Characteristic::Name("LED 1"); new DEV_DimmableLED(17,19); // The first argument specifies the LED pin; the second argument specifies the PushButton pin new SpanAccessory(); - new DEV_Identify("LED 2","HomeSpan","123-ABC","20mA LED","0.9",0); + new Service::AccessoryInformation(); + new Characteristic::Identify(); + new Characteristic::Name("LED 2"); new DEV_DimmableLED(16,18); // The first argument specifies the LED pin; the second argument specifies the PushButton pin } // end of setup() diff --git a/examples/18-SavingStatus/DEV_Identify.h b/examples/18-SavingStatus/DEV_Identify.h deleted file mode 100644 index b8d21d6..0000000 --- a/examples/18-SavingStatus/DEV_Identify.h +++ /dev/null @@ -1,38 +0,0 @@ - -////////////////////////////////// -// DEVICE-SPECIFIC SERVICES // -////////////////////////////////// - -struct DEV_Identify : Service::AccessoryInformation { - - int nBlinks; // number of times to blink built-in LED in identify routine - SpanCharacteristic *identify; // reference to the Identify Characteristic - - DEV_Identify(const char *name, const char *manu, const char *sn, const char *model, const char *version, int nBlinks) : Service::AccessoryInformation(){ - - new Characteristic::Name(name); // create all the required Characteristics with values set based on above arguments - new Characteristic::Manufacturer(manu); - new Characteristic::SerialNumber(sn); - new Characteristic::Model(model); - new Characteristic::FirmwareRevision(version); - identify=new Characteristic::Identify(); // store a reference to the Identify Characteristic for use below - - this->nBlinks=nBlinks; // store the number of times to blink the LED - - pinMode(homeSpan.getStatusPin(),OUTPUT); // make sure LED is set for output - } - - boolean update(){ - - for(int i=0;i