Fixed errors

This commit is contained in:
2025-08-14 07:00:18 -04:00
parent 98a97a03a6
commit 8d2caa0afa
8 changed files with 250 additions and 187 deletions

35
main/simple_zb_light.h Normal file
View File

@@ -0,0 +1,35 @@
#ifndef SIMPLE_ZB_LIGHT_H
#define SIMPLE_ZB_LIGHT_H
#include "sdkconfig.h"
#include "esp_zigbee_core.h"
#include "esp_zigbee_type.h"
#include "ha/esp_zigbee_ha_standard.h"
// Zigbee configuration for End Device
#define ESP_ZB_ZED_CONFIG() \
{ \
.esp_zb_role = ESP_ZB_DEVICE_TYPE_ED, \
.install_code_policy = true, \
.nwk_cfg.zed_cfg = { \
.ed_timeout = ESP_ZB_ED_AGING_TIMEOUT_64MIN, \
.keep_alive = 60000, \
}, \
}
// Radio configuration for ESP32-C6 native Zigbee
#define ESP_ZB_DEFAULT_RADIO_CONFIG() \
{ \
.radio_mode = ZB_RADIO_MODE_NATIVE, \
}
// Host configuration (no host connection for single-chip mode)
#define ESP_ZB_DEFAULT_HOST_CONFIG() \
{ \
.host_connection_mode = ZB_HOST_CONNECTION_MODE_NONE, \
}
// Channel mask to scan all Zigbee channels (11-26)
#define ESP_ZB_PRIMARY_CHANNEL_MASK ESP_ZB_TRANSCEIVER_ALL_CHANNELS_MASK
#endif // SIMPLE_ZB_LIGHT_H