-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gives code -2 #242
Comments
#include <homekit/homekit.h> void my_accessory_identify(homekit_value_t _value) { homekit_characteristic_t cha_switch_on = HOMEKIT_CHARACTERISTIC_(ON, false); homekit_accessory_t accessories[] = { //=============================================================================== //=============================================================================== //=============================================================================== //=============================================================================== //=============================================================================== //===============================================================================
}; homekit_server_config_t accessory_config = { extern "C" homekit_server_config_t accessory_config; static uint32_t next_heap_millis = 0; void my_homekit_setup() { void my_homekit_loop() { } //=============================================================================== if (on) { //=============================================================================== saveConfig(); homekit_characteristic_notify(&cha_bright, cha_bright.value); // Отправляем новую яркость в HomeKit |
I don’t understand why it gives code -2 and doesn’t add the device
Free heap: 11136, HomeKit clients: 0
The text was updated successfully, but these errors were encountered: