-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage
Description
Board
N/A
Device Description
the example here:
https://github.com/espressif/arduino-esp32/blob/master/libraries/Zigbee/examples/Zigbee_Contact_Switch/Zigbee_Contact_Switch.ino
gives the error:
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino: In function 'void setup()':
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:82:21: error: 'class ZigbeeContactSwitch' has no member named 'restoreIASZoneEnroll'
82 | zbContactSwitch.restoreIASZoneEnroll();
| ^~~~~~~~~~~~~~~~~~~~
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:85:21: error: 'class ZigbeeContactSwitch' has no member named 'requestIASZoneEnroll'
85 | zbContactSwitch.requestIASZoneEnroll();
| ^~~~~~~~~~~~~~~~~~~~
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:88:27: error: 'class ZigbeeContactSwitch' has no member named 'enrolled'
88 | while (!zbContactSwitch.enrolled()) {
| ^~~~~~~~
exit status 1
Compilation error: 'class ZigbeeContactSwitch' has no member named 'restoreIASZoneEnroll'
the contact switch class does not include the isEnrolled / request / restore enrolment functions
Hardware Configuration
no board - code is invali
Version
latest stable Release (if not listed below)
Type
Task
IDE Name
Arduino IDE with this library
Operating System
macOS 26.1
Flash frequency
0
PSRAM enabled
yes
Upload speed
n/a
Description
Example code is invalid in the zigbee library
Sketch
if (enrolled) {
Serial.println("Device has been enrolled before - restoring IAS Zone enrollment");
zbContactSwitch.restoreIASZoneEnroll();
} else {
Serial.println("Device is factory new - first time joining network - requesting new IAS Zone enrollment");
zbContactSwitch.requestIASZoneEnroll();
}
while (!zbContactSwitch.enrolled()) {
Serial.print(".");
delay(100);
}Debug Message
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino: In function 'void setup()':
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:82:21: error: 'class ZigbeeContactSwitch' has no member named 'restoreIASZoneEnroll'
82 | zbContactSwitch.restoreIASZoneEnroll();
| ^~~~~~~~~~~~~~~~~~~~
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:85:21: error: 'class ZigbeeContactSwitch' has no member named 'requestIASZoneEnroll'
85 | zbContactSwitch.requestIASZoneEnroll();
| ^~~~~~~~~~~~~~~~~~~~
/private/var/folders/h9/1rfqnvg16yv_dt34tx4p8cdh0000gn/T/.arduinoIDE-unsaved2025116-49073-lbx5w8.1bno/sketch_dec6a/sketch_dec6a.ino:88:27: error: 'class ZigbeeContactSwitch' has no member named 'enrolled'
88 | while (!zbContactSwitch.enrolled()) {
| ^~~~~~~~
exit status 1
Compilation error: 'class ZigbeeContactSwitch' has no member named 'restoreIASZoneEnroll'
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage