Skip to content

Commit 36fb853

Browse files
committed
fix(zigbee): Commit suggestions from copilot
1 parent fc4cae1 commit 36fb853

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

libraries/Zigbee/examples/Zigbee_Multistate_Input_Output/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The example creates two multistate devices:
3737

3838
You can modify the state names and configurations by changing the following variables:
3939
- `multistate_custom_state_names[]`: Array of custom state names
40-
- Application type and lenght macros: `ZB_MULTISTATE_APPLICATION_TYPE_X_STATE_NAMES`,
40+
- Application type and length macros: `ZB_MULTISTATE_APPLICATION_TYPE_X_STATE_NAMES`,
4141
`ZB_MULTISTATE_APPLICATION_TYPE_X_NUM_STATES`, `ZB_MULTISTATE_APPLICATION_TYPE_X_INDEX`
4242
- Device descriptions and application types in the setup() function
4343

@@ -46,8 +46,8 @@ You can modify the state names and configurations by changing the following vari
4646
To get more information about the Espressif boards see [Espressif Development Kits](https://www.espressif.com/en/products/devkits).
4747

4848
* Before Compile/Verify, select the correct board: `Tools -> Board`.
49-
* Select the End device Zigbee mode: `Tools -> Zigbee mode: Zigbee ED (end device)`
50-
* Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee 4MB with spiffs`
49+
* Select the Coordinator/Router Zigbee mode: `Tools -> Zigbee mode: Zigbee ZCZR (coordinator/router)`
50+
* Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee ZCZR 4MB with spiffs`
5151
* Select the COM port: `Tools -> Port: xxx` where the `xxx` is the detected COM port.
5252
* Optional: Set debug level to verbose to see all logs from Zigbee stack: `Tools -> Core Debug Level: Verbose`.
5353

libraries/Zigbee/examples/Zigbee_Multistate_Input_Output/Zigbee_Multistate_Input_Output.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@ void onStateChangeCustom(uint16_t state) {
8080
Serial.println("On");
8181
break;
8282
case 2:
83-
Serial.println("Slow");
83+
Serial.println("UltraSlow");
8484
break;
8585
case 3:
86-
Serial.println("Medium");
86+
Serial.println("Slow");
8787
break;
8888
case 4:
8989
Serial.println("Fast");
9090
break;
91+
case 5:
92+
Serial.println("SuperFast");
93+
break;
9194
default:
9295
Serial.println("Invalid state");
9396
break;

libraries/Zigbee/keywords.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ zb_cmd_type_t KEYWORD1
5656

5757
# ZigbeeCore
5858
begin KEYWORD2
59+
start KEYWORD2
60+
stop KEYWORD2
5961
started KEYWORD2
6062
connected KEYWORD2
6163
getRole KEYWORD2
@@ -241,9 +243,9 @@ setMultistateInputStates KEYWORD2
241243
setMultistateOutputApplication KEYWORD2
242244
setMultistateOutputDescription KEYWORD2
243245
setMultistateOutputStates KEYWORD2
244-
getMultistateInputStateNames KEYWORD2
246+
#getMultistateInputStateNames KEYWORD2
245247
getMultistateInputStateNamesLength KEYWORD2
246-
getMultistateOutputStateNames KEYWORD2
248+
#getMultistateOutputStateNames KEYWORD2
247249
getMultistateOutputStateNamesLength KEYWORD2
248250

249251
#######################################

0 commit comments

Comments
 (0)