mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Add ESP-NOW bridge example and necessary support
This commit is contained in:
committed by
Hrishikesh Dhayagude
parent
0b1762e511
commit
853b2666d4
@@ -209,6 +209,11 @@ esp_err_t set_device_type(device_t *bridged_device, uint32_t device_type_id)
|
||||
bridged_device->endpoint = extended_color_light::add(bridged_device->endpoint, &extended_color_light_conf);
|
||||
break;
|
||||
}
|
||||
case ESP_MATTER_ON_OFF_SWITCH_DEVICE_TYPE_ID: {
|
||||
on_off_switch::config_t switch_config;
|
||||
bridged_device->endpoint = on_off_switch::add(bridged_device->endpoint, &switch_config);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
ESP_LOGE(TAG, "Unsupported bridged matter device type");
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
|
||||
Reference in New Issue
Block a user