From 2b669022ec7b75b020b202532f24549438af2b46 Mon Sep 17 00:00:00 2001 From: Gregg Date: Tue, 12 Apr 2022 21:36:00 -0500 Subject: [PATCH] Updated Example 17 with note to indicate it is not functioning correctly This appears to be a Home App problem. The problem cannot be fixed by adding in ServiceLabel and ServiceIndex (no impact), nor adding in isConfigured(), nor adding Name() Characteristics. The Home App refuses to render the valves regardless of what valve type. They will sometimes appear, and then disappear from the interface for no reason. Testing with the Apple's HomeKit Simulator yields the same symptoms. --- examples/17-LinkedServices/17-LinkedServices.ino | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/17-LinkedServices/17-LinkedServices.ino b/examples/17-LinkedServices/17-LinkedServices.ino index 784208a..77708d0 100644 --- a/examples/17-LinkedServices/17-LinkedServices.ino +++ b/examples/17-LinkedServices/17-LinkedServices.ino @@ -119,8 +119,6 @@ struct Shower : Service::Faucet { // this is our Shower structur WaterValve(Shower *s, int i){ // this is constructor for WaterValve. It takes a single argument that points to the "controlling" Shower Service shower=s; // store the pointer to the Shower Service new Characteristic::ValveType(2); // specify the Value Type (2=Shower Head; see HAP R2 for other choices) - new Characteristic::ServiceLabelIndex(i); - new Characteristic::IsConfigured(1); // Source included in the Settings Screen... } boolean update() override { // HomeSpan calls this whenever the Home App requests a change in a Valve's Active Characteristic @@ -153,9 +151,6 @@ void setup() { new Shower(4); // Create a Spa Shower with 4 spray heads - new Service::ServiceLabel(); - new Characteristic::ServiceLabelNamespace(1); - } // end of setup() //////////////////////////////////////