Fixed errors
This commit is contained in:
35
main/simple_zb_light.h
Normal file
35
main/simple_zb_light.h
Normal 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
|
Reference in New Issue
Block a user