Skip to content

Commit 428b7fa

Browse files
committed
fix: callback method parameters
1 parent ff76843 commit 428b7fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: libraries/Zigbee/src/ep/ZigbeeOccupancySensor.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,17 @@ class ZigbeeOccupancySensor : public ZigbeeEP {
7777
// Specifies the number of movement detection events that must occur in the period unoccupied to occupied delay, before the sensor changes to its occupied state.
7878
bool setUnoccupiedToOccupiedThreshold(ZigbeeOccupancySensorType sensor_type, uint8_t threshold);
7979

80+
void onOccupancyConfigChange(void (*callback)(ZigbeeOccupancySensorType sensor_type, uint16_t occ_to_unocc_delay, uint16_t unocc_to_occ_delay, uint8_t unocc_to_occ_threshold)) {
81+
_on_occupancy_config_change = callback;
82+
}
8083
// Report the occupancy value
8184
bool report();
8285

8386
private:
8487
void zbAttributeSet(const esp_zb_zcl_set_attr_value_message_t *message) override;
8588

8689
void (*_on_occupancy_config_change)(ZigbeeOccupancySensorType sensor_type, uint16_t occ_to_unocc_delay, uint16_t unocc_to_occ_delay, uint8_t unocc_to_occ_threshold);
87-
void occupancyConfigChanged(ZigbeeOccupancySensorType sensor_type, uint16_t occ_to_unocc_delay, uint16_t unocc_to_occ_delay, uint8_t unocc_to_occ_threshold);
90+
void occupancyConfigChanged(ZigbeeOccupancySensorType sensor_type);
8891

8992
// PIR sensor configuration
9093
uint16_t _pir_occ_to_unocc_delay;

0 commit comments

Comments
 (0)