Skip to content

Commit 78d4bb3

Browse files
authored
Update ZigbeeEP.h
make addBoundDevice virtual for override
1 parent d7971ca commit 78d4bb3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libraries/Zigbee/src/ZigbeeEP.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ class ZigbeeEP {
105105

106106
virtual void zbIASZoneStatusChangeNotification(const esp_zb_zcl_ias_zone_status_change_notification_message_t *message) {};
107107

108+
virtual void addBoundDevice(zb_device_params_t *device) {
109+
_bound_devices.push_back(device);
110+
_is_bound = true;
111+
}
112+
108113
void onIdentify(void (*callback)(uint16_t)) {
109114
_on_identify = callback;
110115
}
@@ -125,10 +130,6 @@ class ZigbeeEP {
125130
SemaphoreHandle_t lock;
126131
zb_power_source_t _power_source;
127132

128-
void addBoundDevice(zb_device_params_t *device) {
129-
_bound_devices.push_back(device);
130-
_is_bound = true;
131-
}
132133
friend class ZigbeeCore;
133134
};
134135

0 commit comments

Comments
 (0)