We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As the topic above, Im struggling how to name it. I figure out how to union the switch but can't name it seperate.
This is part of my accessory code
homekit_characteristic_t cha_auto_change_on = HOMEKIT_CHARACTERISTIC_(ON, true); homekit_characteristic_t cha_auto_change_on_name = HOMEKIT_CHARACTERISTIC_(NAME, "Auto change");
homekit_characteristic_t all_swing = HOMEKIT_CHARACTERISTIC_(ON, true); homekit_characteristic_t all_swing_name = HOMEKIT_CHARACTERISTIC_(NAME, "SWING");
homekit_characteristic_t function_name = HOMEKIT_CHARACTERISTIC_(NAME, "Function");
//=============================
HOMEKIT_ACCESSORY(.id=8, .category=homekit_accessory_category_switch, .services=(homekit_service_t*[]) { HOMEKIT_SERVICE(ACCESSORY_INFORMATION, .characteristics=(homekit_characteristic_t*[]) { HOMEKIT_CHARACTERISTIC(IDENTIFY, my_accessory_identify), &function_name, NULL }), HOMEKIT_SERVICE(SWITCH, .primary=true, .characteristics=(homekit_characteristic_t*[]) { &cha_auto_change_on, &cha_auto_change_on_name, NULL }), HOMEKIT_SERVICE(SWITCH, .primary=false, .characteristics=(homekit_characteristic_t*[]) { &all_swing, &all_swing_name, NULL }), NULL }),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As the topic above, Im struggling how to name it.
I figure out how to union the switch but can't name it seperate.
This is part of my accessory code
homekit_characteristic_t cha_auto_change_on = HOMEKIT_CHARACTERISTIC_(ON, true);
homekit_characteristic_t cha_auto_change_on_name = HOMEKIT_CHARACTERISTIC_(NAME, "Auto change");
homekit_characteristic_t all_swing = HOMEKIT_CHARACTERISTIC_(ON, true);
homekit_characteristic_t all_swing_name = HOMEKIT_CHARACTERISTIC_(NAME, "SWING");
homekit_characteristic_t function_name = HOMEKIT_CHARACTERISTIC_(NAME, "Function");
//=============================
HOMEKIT_ACCESSORY(.id=8, .category=homekit_accessory_category_switch, .services=(homekit_service_t*[]) {
HOMEKIT_SERVICE(ACCESSORY_INFORMATION, .characteristics=(homekit_characteristic_t*[]) {
HOMEKIT_CHARACTERISTIC(IDENTIFY, my_accessory_identify),
&function_name,
NULL
}),
HOMEKIT_SERVICE(SWITCH, .primary=true, .characteristics=(homekit_characteristic_t*[]) {
&cha_auto_change_on,
&cha_auto_change_on_name,
NULL
}),
HOMEKIT_SERVICE(SWITCH, .primary=false, .characteristics=(homekit_characteristic_t*[]) {
&all_swing,
&all_swing_name,
NULL
}),
NULL
}),
The text was updated successfully, but these errors were encountered: