Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

HOMEKIT_SERVICE_DOORBELL not found #178

Closed drbugfinder closed 1 year ago

drbugfinder commented 1 year ago

Hi,

I just wanted to test the HOMEKIT_SERVICE_DOORBELL to create a simple doorbell. Unfortunately it cannot be found:

In file included from /Documents/Arduino/libraries/Arduino-HomeKit-ESP8266-1.4.0/src/homekit/homekit.h:4,
                 from /Documents/Arduino/DoorControl-Sprechanlage/homekit.c:1:
/Documents/Arduino/libraries/Arduino-HomeKit-ESP8266-1.4.0/src/homekit/types.h:252:34: error: 'HOMEKIT_SERVICE_HOMEKIT_SERVICE_DOORBELL' undeclared here (not in a function); did you mean 'HOMEKIT_SERVICE_SERVICE_LABEL'?
  252 |     &(homekit_service_t) { .type=HOMEKIT_SERVICE_ ## _type, ##__VA_ARGS__ }
      |                                  ^~~~~~~~~~~~~~~~
/Documents/Arduino/libraries/Arduino-HomeKit-ESP8266-1.4.0/src/homekit/types.h:246:11: note: in expansion of macro 'HOMEKIT_SERVICE'
  246 |         ##__VA_ARGS__ \
      |           ^~~~~~~~~~~
/Documents/Arduino/DoorControl-Sprechanlage/homekit.c:35:5: note: in expansion of macro 'HOMEKIT_ACCESSORY'
   35 |     HOMEKIT_ACCESSORY(.id=1, .category=homekit_accessory_category_video_door_bell, .services=(homekit_service_t*[]) {
      |     ^~~~~~~~~~~~~~~~~

https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/blob/8a8e1a065005e9252d728b24f96f6d0b29993f67/src/homekit/characteristics.h#L489

Can you please have a look?