maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 168 forks source link

HOMEKIT_SERVICE_DOORBELL not found #205

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/maximkulkin/esp-homekit/blob/0f3ef2ac2872ffe64dfe4e5d929420af327d48a5/include/homekit/characteristics.h#L483

Can you please have a look?