Add GitHub action

This commit is contained in:
rbaron 2022-12-09 20:01:46 +01:00
parent fbf1a35099
commit 3c2094db2d
4 changed files with 14 additions and 4 deletions

View file

@ -71,4 +71,10 @@ jobs:
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52833
output-bin: ble_nrf52833_default.hex
output-bin: ble_nrf52833_default.hex
- name: Build zigbee_nrf528340_default.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/zigbee
board: bparasite_nrf52840
output-bin: zigbee_nrf52840_default.hex

View file

@ -2,8 +2,8 @@ source "Kconfig.zephyr"
config PRST_ZB_SLEEP_DURATION_SEC
int "Sleep duration between waking up and reading sensors (in seconds)"
default 300
default 60
config PRST_ZB_PARENT_POLL_INTERVAL_SEC
int "Interval for when b-parasite polls its parent for data (in seconds)"
default 300
default 60

View file

@ -41,3 +41,6 @@ CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
# Enable API for powering down unused RAM parts.
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_zigbee_configuring.html#power-saving-during-sleep
CONFIG_RAM_POWER_DOWN_LIBRARY=y
# Config options in Kconfig.
# CONFIG_PRST_ZB_SLEEP_DURATION_SEC=5

View file

@ -167,7 +167,8 @@ int main(void) {
RET_IF_ERR(prst_led_flash(2));
zb_zdo_pim_set_long_poll_interval(CONFIG_PRST_ZB_PARENT_POLL_INTERVAL_SEC);
zb_zdo_pim_set_long_poll_interval(
ZB_TIME_ONE_SECOND * CONFIG_PRST_ZB_PARENT_POLL_INTERVAL_SEC);
power_down_unused_ram();
zigbee_enable();