1. zigbee_configure_sleepy_behavior must be called before zigbee_enable - [source docs](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/zigbee_app_utils.html#c.zigbee_configure_sleepy_behavior) 2. zb_zdo_pim_set_long_poll_interval must be called after the network is joined - [source docs](https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.5.2.0/group__zdo__poll__control.html#ga3aae8929b30e71c872f937771b89c768). On top of that, the argument for the call was incorrect - it expects ms directly. 3. Removed the unecessary CONFIG_PM, seems like there's no impact in power consumption. Could it cause some weirdness? 4. Implemented CONFIG_PRST_ZB_FACTORY_RESET_DISABLED=y to fully disable factory resetting. May aid debugging. 5. Implemented multi/single channel support. Helps with battery life when scanning networks
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
source "Kconfig.zephyr"
|
|
rsource "../../prstlib/Kconfig"
|
|
|
|
config PRST_ZB_SLEEP_DURATION_SEC
|
|
int "Sleep duration between waking up and reading sensors in seconds."
|
|
default 60
|
|
|
|
config PRST_ZB_PARENT_POLL_INTERVAL_SEC
|
|
int "Interval for when b-parasite polls its parent for data in seconds."
|
|
default 10
|
|
|
|
config PRST_ZB_BUILD_DATE
|
|
string "Zigbee basic cluster build date attribute. Max 16 bytes."
|
|
default ""
|
|
|
|
config PRST_ZB_MODEL_ID
|
|
string "Zigbee basic cluster model id attribute. Max 32 bytes."
|
|
default "b-parasite"
|
|
|
|
config PRST_ZB_HARDWARE_VERSION
|
|
int "Zigbee basic cluster hardware version attribute. 1 byte."
|
|
default BOARD_REVISION_CODE
|
|
|
|
choice PRST_ZB_FACTORY_RESET_METHOD
|
|
bool "Factory reset method"
|
|
default PRST_ZB_FACTORY_RESET_VIA_SW1
|
|
|
|
config PRST_ZB_FACTORY_RESET_VIA_DOUBLE_RESET
|
|
bool "Double resetting factory resets the device."
|
|
|
|
config PRST_ZB_FACTORY_RESET_VIA_RESET_PIN
|
|
bool "Resetting via the reset pin will factory reset the device. Power cycling through battery replacement will not."
|
|
|
|
config PRST_ZB_FACTORY_RESET_VIA_SW1
|
|
bool "Resetting while pressing and holding SW1 for 5 seconds will factory reset the device. Only available on v2.0.0+ hardware revisions."
|
|
|
|
config PRST_ZB_FACTORY_RESET_DISABLED
|
|
bool "No factory reset procedure."
|
|
|
|
endchoice # PRST_ZB_FACTORY_RESET_METHOD
|
|
|
|
config PRST_ZB_RESTART_WATCHDOG_TIMEOUT_SEC
|
|
int "Duration after the device will restart the rejoin procedure if a network has not been successfully joined."
|
|
default 3600
|