Skip to content

Commit

Permalink
Wifi coex
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen Friedrich committed Oct 28, 2024
1 parent 43923a4 commit 9a90c40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/zigbee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ async def to_code(config):
add_idf_sdkconfig_option("CONFIG_ZB_ENABLED", True)
add_idf_sdkconfig_option("CONFIG_ZB_ZED", True)
add_idf_sdkconfig_option("CONFIG_ZB_RADIO_NATIVE", True)
#add_idf_sdkconfig_option("CONFIG_ZB_DEBUG_MODE", True)
add_idf_sdkconfig_option("CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE", 4096)
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)
if CONF_NAME not in config:
Expand Down
2 changes: 2 additions & 0 deletions esphome/components/zigbee/zigbee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "zigbee.h"
#include "esphome/core/log.h"
#include "zigbee_helpers.h"
#include "esp_coexist.h"

#if !defined ZB_ED_ROLE
#error Define ZB_ED_ROLE in idf.py menuconfig to compile light (End Device) source code.
Expand Down Expand Up @@ -367,6 +368,7 @@ void ZigBeeComponent::setup() {
.radio_config = ESP_ZB_DEFAULT_RADIO_CONFIG(),
.host_config = ESP_ZB_DEFAULT_HOST_CONFIG(),
};
ESP_ERROR_CHECK(esp_coex_wifi_i154_enable());
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_zb_platform_config(&config));
xTaskCreate([](void *arg) { static_cast<ZigBeeComponent *>(arg)->esp_zb_task(); }, "Zigbee_main", 4096, this, 24,
Expand Down

0 comments on commit 9a90c40

Please sign in to comment.