This shows you the differences between two versions of the page.
iothings:laboratoare:2025:lab5 [2025/10/22 11:18] dan.tudose [Zigbee Router + End Device] |
iothings:laboratoare:2025:lab5 [2025/10/22 11:33] (current) dan.tudose [Zigbee Router + End Device] |
||
---|---|---|---|
Line 184: | Line 184: | ||
<code bash platformio.ini> | <code bash platformio.ini> | ||
+ | ; PlatformIO Project Configuration File | ||
+ | ; | ||
+ | ; Build options: build flags, source filter | ||
+ | ; Upload options: custom upload port, speed and extra flags | ||
+ | ; Library options: dependencies, extra library storages | ||
+ | ; Advanced options: extra scripting | ||
+ | ; | ||
+ | ; See https://docs.platformio.org/page/projectconf.html for details. | ||
+ | |||
[platformio] | [platformio] | ||
default_envs = sparrow-switch | default_envs = sparrow-switch | ||
Line 200: | Line 209: | ||
;-D CORE_DEBUG_LEVEL=5 | ;-D CORE_DEBUG_LEVEL=5 | ||
- | ; Use a partitions.csv that contains Zigbee NV partitions | + | ; Use a partitions.csv that contains Zigbee NV partitions (see step 2) |
board_build.partitions = partitions.csv | board_build.partitions = partitions.csv | ||
Line 210: | Line 219: | ||
-D ZIGBEE_MODE_ED | -D ZIGBEE_MODE_ED | ||
-D SPARROW_SWITCH | -D SPARROW_SWITCH | ||
+ | -D CONFIG_ZB_ENABLED=1 | ||
+ | -L$PLATFORMIO_PACKAGES_DIR/framework-arduinoespressif32-libs/esp32c6/lib | ||
+ | -lesp_zb_api.ed | ||
+ | -lzboss_stack.ed | ||
+ | -lzboss_port.native | ||
+ | -lzboss_port.remote | ||
[env:sparrow-light] | [env:sparrow-light] | ||
Line 216: | Line 231: | ||
-D ZIGBEE_MODE_ROUTER | -D ZIGBEE_MODE_ROUTER | ||
-D SPARROW_LIGHT | -D SPARROW_LIGHT | ||
+ | -D CONFIG_ZB_ENABLED=1 | ||
+ | -L$PLATFORMIO_PACKAGES_DIR/framework-arduinoespressif32-libs/esp32c6/lib | ||
+ | -lesp_zb_api.zczr | ||
+ | -lzboss_stack.zczr | ||
+ | -lzboss_port.native | ||
+ | -lzboss_port.remote | ||
lib_deps = | lib_deps = | ||
adafruit/Adafruit NeoPixel@^1.12.0 | adafruit/Adafruit NeoPixel@^1.12.0 | ||
+ | |||
</code> | </code> |