# STM32WBA-Zigbee-OnOff-Router **Repository Path**: stjinqi/STM32WBA-Zigbee-OnOff-Router ## Basic Information - **Project Name**: STM32WBA-Zigbee-OnOff-Router - **Description**: This application is based on Zigbee_OnOff_Client_Router example from SDK and it is enhanced with second configuration for functioning as OnOffServer. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-03 - **Last Updated**: 2025-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Zigbee OnOff Router Demo application ## Overview This application demonstrates how to use the STM32WBA65 Nucleo board in different Zigbee configurations, showcasing different real-world use case scenarios. The configurations are set by defines in the app_zigbee_endpoint.c file. ## Boards Needed * [NUCLEO-WBA65RI](https://www.st.com/en/evaluation-tools/nucleo-wba65ri.html) ## Configuration Options You can select one of the following configurations by setting the respective define to 1: Light Switch (On/Off Client) Light Bulb (On/Off Server) Example: ``` #define APP_ZIGBEE_LIGHTSWITCH_CONFIG 1 #define APP_ZIGBEE_LIGHTBULB_CONFIG 0 ``` For this demo example you need have extra device working as Cooordinator to which you will connect the nucleo board ### Button Functions Used in Light Switch configuration (On/Off Client) SW1 [Toggle]: Push to send a toggle request to binded devices. SW3 [Automatic toggle]: Start/Stop Automatic Toggle Timer sending periodically Toggle request. ### LED Indicators RED LED: Indicates the state of the On/Off attribute of the On/Off Server cluster (similar to a light bulb). BLUE LED: Indicates that the device has joined a Zigbee network. ### To setup the application: Open the project select preferred configuration by editing respective defines in app_zigbee_endpoint.c build it and load your generated application on your STM32WB devices. ## How to use it? Getting traces To get the traces you need to connect your Board to the Hyperterminal (through the STLink Virtual COM Port). The UART must be configured as follows: ``` - BaudRate = 115200 baud - Word Length = 8 Bits - Stop Bit = 1 bit - Parity = none - Flow control = none ``` ## Keywords Zigbee, IoT, Internet of Things, Network, Connectivity, FreeRTOS, commissioning, persistence, CSA, Connectivity Standard Alliance, STM32, P-NUCLEO-WB55, Touch Link, NVM, OTA ## Known issues n/a