Closed imlsq closed 3 years ago
I have found out the cause of the problem.
const HAPService lightBulbService = {
.iid = kIID_LightBulb,
.serviceType = &kHAPServiceType_LightBulb,
.debugDescription = kHAPServiceDebugDescription_LightBulb,
.name = "Light",
.properties = { .primaryService = true, .hidden = false, .ble = { .supportsConfiguration = false } },
.linkedServices = NULL,
.characteristics = (const HAPCharacteristic* const[]) { &lightBulbServiceSignatureCharacteristic,
//&lightBulbNameCharacteristic,
&lightBulbOnCharacteristic
NULL }
};
you needn`t set 'lightBulbNameCharacteristic'
Accessories added through the bridge cannot display the correct name
Through the bridge to add accessories, reference link "How to implement a bridge"
This is my code
Successfully added accessories in the home, the name shows "Light Bulb", but what I expect is "Acme Light". Thanks!