以上的例子除了注释以外,是官方例程TableLamp的代码
但我发现IPAD OS /IOS如果版本很低,
new Characteristic::Name("bridge"); // Name of the Accessory, which shows up on the HomeKit "tiles", and should be unique across Accessories
new Characteristic::Manufacturer("HomeSpan"); // Manufacturer of the Accessory (arbitrary text string, and can be the same for every Accessory)
new Characteristic::SerialNumber("123-ABC"); // Serial Number of the Accessory (arbitrary text string, and can be the same for every Accessory)
new Characteristic::Model("120-Volt Lamp"); // Model of the Accessory (arbitrary text string, and can be the same for every Accessory)
new Characteristic::FirmwareRevision("1.9");
这段信息说明不能省略,如果省了会导致低版本的HOME APP 不能识别