Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ee00ea

Browse files
authoredDec 9, 2024
ci(pre-commit): Apply automatic fixes
1 parent c8f7c1b commit 3ee00ea

File tree

6 files changed

+68
-43
lines changed

6 files changed

+68
-43
lines changed
 

‎libraries/Zigbee/examples/Zigbee_On_Off_Switch/Zigbee_On_Off_Switch.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ void setup() {
137137
Serial.printf(".");
138138
delay(500);
139139
}
140-
140+
141141
// Optional: List all bound devices and read manufacturer and model name
142142
std::list<zb_device_params_t *> boundLights = zbSwitch.getBoundDevices();
143143
for (const auto &device : boundLights) {
144144
Serial.printf("Device on endpoint %d, short address: 0x%x\r\n", device->endpoint, device->short_addr);
145145
Serial.printf(
146-
"IEEE Address: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\r\n", device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5],
147-
device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]
146+
"IEEE Address: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\r\n", device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4],
147+
device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]
148148
);
149149
Serial.printf("Light manufacturer: %s\r\n", zbSwitch.readManufacturer(device->endpoint, device->short_addr, device->ieee_addr));
150150
Serial.printf("Light model: %s\r\n", zbSwitch.readModel(device->endpoint, device->short_addr, device->ieee_addr));
@@ -192,4 +192,4 @@ void loop() {
192192
lastPrint = millis();
193193
zbSwitch.printBoundDevices(Serial);
194194
}
195-
}
195+
}

‎libraries/Zigbee/src/ZigbeeCore.cpp

+16-11
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
310310
Bit 6 – Security capability
311311
Bit 7 – Reserved
312312
*/
313-
// for each endpoint in the list call the findEndpoint function if not bounded or allowed to bind multiple devices
313+
// for each endpoint in the list call the findEndpoint function if not bounded or allowed to bind multiple devices
314314
for (std::list<ZigbeeEP *>::iterator it = Zigbee.ep_objects.begin(); it != Zigbee.ep_objects.end(); ++it) {
315315
if (!(*it)->bound() || (*it)->epAllowMultipleBinding()) {
316316
(*it)->findEndpoint(&cmd_req);
@@ -329,7 +329,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
329329
}
330330
}
331331
break;
332-
case ESP_ZB_ZDO_SIGNAL_LEAVE: // End Device + Router
332+
case ESP_ZB_ZDO_SIGNAL_LEAVE: // End Device + Router
333333
// Device was removed from the network, factory reset the device
334334
if ((zigbee_role_t)Zigbee.getRole() != ZIGBEE_COORDINATOR) {
335335
Zigbee.factoryReset();
@@ -398,8 +398,7 @@ void ZigbeeCore::scanDelete() {
398398
}
399399

400400
// Recall bounded devices from the binding table after reboot
401-
void ZigbeeCore::bindingTableCb(const esp_zb_zdo_binding_table_info_t *table_info, void *user_ctx)
402-
{
401+
void ZigbeeCore::bindingTableCb(const esp_zb_zdo_binding_table_info_t *table_info, void *user_ctx) {
403402
bool done = true;
404403
esp_zb_zdo_mgmt_bind_param_t *req = (esp_zb_zdo_mgmt_bind_param_t *)user_ctx;
405404
esp_zb_zdp_status_t zdo_status = (esp_zb_zdp_status_t)table_info->status;
@@ -408,30 +407,36 @@ void ZigbeeCore::bindingTableCb(const esp_zb_zdo_binding_table_info_t *table_inf
408407
// Print binding table log simple
409408
log_d("Binding table info: total %d, index %d, count %d", table_info->total, table_info->index, table_info->count);
410409

411-
if(table_info->total == 0) {
410+
if (table_info->total == 0) {
412411
log_d("No binding table entries found");
413412
free(req);
414413
return;
415414
}
416415

417416
esp_zb_zdo_binding_table_record_t *record = table_info->record;
418417
for (int i = 0; i < table_info->count; i++) {
419-
log_d("Binding table record: src_endp %d, dst_endp %d, cluster_id 0x%04x, dst_addr_mode %d", record->src_endp, record->dst_endp, record->cluster_id, record->dst_addr_mode);
418+
log_d(
419+
"Binding table record: src_endp %d, dst_endp %d, cluster_id 0x%04x, dst_addr_mode %d", record->src_endp, record->dst_endp, record->cluster_id,
420+
record->dst_addr_mode
421+
);
420422

421423
zb_device_params_t *device = (zb_device_params_t *)calloc(1, sizeof(zb_device_params_t));
422424
device->endpoint = record->dst_endp;
423-
if(record->dst_addr_mode == ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT || record->dst_addr_mode == ESP_ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT) {
425+
if (record->dst_addr_mode == ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT || record->dst_addr_mode == ESP_ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT) {
424426
device->short_addr = record->dst_address.addr_short;
425-
} else { //ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT
427+
} else { //ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT
426428
memcpy(device->ieee_addr, record->dst_address.addr_long, sizeof(esp_zb_ieee_addr_t));
427429
}
428430

429431
// Add to list of bound devices of proper endpoint
430432
for (std::list<ZigbeeEP *>::iterator it = Zigbee.ep_objects.begin(); it != Zigbee.ep_objects.end(); ++it) {
431433
if ((*it)->getEndpoint() == record->src_endp) {
432434
(*it)->addBoundDevice(device);
433-
log_d("Device bound to EP %d -> device endpoint: %d, short addr: 0x%04x, ieee addr: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X", record->src_endp, device->endpoint, device->short_addr,
434-
device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]);
435+
log_d(
436+
"Device bound to EP %d -> device endpoint: %d, short addr: 0x%04x, ieee addr: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X", record->src_endp,
437+
device->endpoint, device->short_addr, device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3],
438+
device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]
439+
);
435440
}
436441
}
437442
record = record->next;
@@ -453,7 +458,7 @@ void ZigbeeCore::bindingTableCb(const esp_zb_zdo_binding_table_info_t *table_inf
453458
}
454459
}
455460

456-
void ZigbeeCore::searchBindings(){
461+
void ZigbeeCore::searchBindings() {
457462
esp_zb_zdo_mgmt_bind_param_t *mb_req = (esp_zb_zdo_mgmt_bind_param_t *)malloc(sizeof(esp_zb_zdo_mgmt_bind_param_t));
458463
mb_req->dst_addr = esp_zb_get_short_address();
459464
mb_req->start_index = 0;

‎libraries/Zigbee/src/ZigbeeEP.cpp

+15-9
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ char *ZigbeeEP::readManufacturer(uint8_t endpoint, uint16_t short_addr, esp_zb_i
118118
/* Read peer Manufacture Name & Model Identifier */
119119
esp_zb_zcl_read_attr_cmd_t read_req;
120120

121-
if(short_addr != 0){
121+
if (short_addr != 0) {
122122
read_req.address_mode = ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT;
123123
read_req.zcl_basic_cmd.dst_addr_u.addr_short = short_addr;
124124
} else {
@@ -154,7 +154,7 @@ char *ZigbeeEP::readModel(uint8_t endpoint, uint16_t short_addr, esp_zb_ieee_add
154154
/* Read peer Manufacture Name & Model Identifier */
155155
esp_zb_zcl_read_attr_cmd_t read_req;
156156

157-
if(short_addr != 0){
157+
if (short_addr != 0) {
158158
read_req.address_mode = ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT;
159159
read_req.zcl_basic_cmd.dst_addr_u.addr_short = short_addr;
160160
} else {
@@ -189,18 +189,24 @@ char *ZigbeeEP::readModel(uint8_t endpoint, uint16_t short_addr, esp_zb_ieee_add
189189
void ZigbeeEP::printBoundDevices() {
190190
log_i("Bound devices:");
191191
for ([[maybe_unused]]
192-
const auto &device : _bound_devices) {
193-
log_i("Device on endpoint %d, short address: 0x%x, ieee address: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", device->endpoint, device->short_addr,
194-
device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]);
195-
}
192+
const auto &device : _bound_devices) {
193+
log_i(
194+
"Device on endpoint %d, short address: 0x%x, ieee address: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", device->endpoint, device->short_addr,
195+
device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1],
196+
device->ieee_addr[0]
197+
);
198+
}
196199
}
197200

198201
void ZigbeeEP::printBoundDevices(Print &print) {
199202
print.println("Bound devices:");
200203
for ([[maybe_unused]]
201-
const auto &device : _bound_devices) {
202-
print.printf("Device on endpoint %d, short address: 0x%x, ieee address: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\r\n", device->endpoint, device->short_addr,
203-
device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1], device->ieee_addr[0]);
204+
const auto &device : _bound_devices) {
205+
print.printf(
206+
"Device on endpoint %d, short address: 0x%x, ieee address: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\r\n", device->endpoint, device->short_addr,
207+
device->ieee_addr[7], device->ieee_addr[6], device->ieee_addr[5], device->ieee_addr[4], device->ieee_addr[3], device->ieee_addr[2], device->ieee_addr[1],
208+
device->ieee_addr[0]
209+
);
204210
}
205211
}
206212

‎libraries/Zigbee/src/ZigbeeEP.h

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class ZigbeeEP {
108108
}
109109

110110
private:
111-
112111
char *_read_manufacturer;
113112
char *_read_model;
114113
void (*_on_identify)(uint16_t time);

‎libraries/Zigbee/src/ep/ZigbeeColorDimmerSwitch.cpp

+21-12
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void ZigbeeColorDimmerSwitch::findCb(esp_zb_zdp_status_t zdo_status, uint16_t ad
7979
// find on_off light endpoint
8080
void ZigbeeColorDimmerSwitch::findEndpoint(esp_zb_zdo_match_desc_req_param_t *cmd_req) {
8181
uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL,
82-
ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
82+
ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
8383
esp_zb_zdo_match_desc_req_param_t color_dimmable_light_req = {
8484
.dst_nwk_addr = cmd_req->dst_nwk_addr,
8585
.addr_of_interest = cmd_req->addr_of_interest,
@@ -148,8 +148,10 @@ void ZigbeeColorDimmerSwitch::lightToggle(uint8_t endpoint, esp_zb_ieee_addr_t i
148148
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
149149
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_TOGGLE_ID;
150150
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
151-
log_v("Sending 'light toggle' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
152-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
151+
log_v(
152+
"Sending 'light toggle' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
153+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
154+
);
153155
esp_zb_lock_acquire(portMAX_DELAY);
154156
esp_zb_zcl_on_off_cmd_req(&cmd_req);
155157
esp_zb_lock_release();
@@ -214,8 +216,10 @@ void ZigbeeColorDimmerSwitch::lightOn(uint8_t endpoint, esp_zb_ieee_addr_t ieee_
214216
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
215217
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_ON_ID;
216218
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
217-
log_v("Sending 'light on' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
218-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
219+
log_v(
220+
"Sending 'light on' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
221+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
222+
);
219223
esp_zb_lock_acquire(portMAX_DELAY);
220224
esp_zb_zcl_on_off_cmd_req(&cmd_req);
221225
esp_zb_lock_release();
@@ -280,8 +284,10 @@ void ZigbeeColorDimmerSwitch::lightOff(uint8_t endpoint, esp_zb_ieee_addr_t ieee
280284
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
281285
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_OFF_ID;
282286
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
283-
log_v("Sending 'light off' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
284-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
287+
log_v(
288+
"Sending 'light off' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
289+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
290+
);
285291
esp_zb_lock_acquire(portMAX_DELAY);
286292
esp_zb_zcl_on_off_cmd_req(&cmd_req);
287293
esp_zb_lock_release();
@@ -397,8 +403,10 @@ void ZigbeeColorDimmerSwitch::setLightLevel(uint8_t level, uint8_t endpoint, esp
397403
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
398404
cmd_req.level = level;
399405
cmd_req.transition_time = 0xffff;
400-
log_v("Sending 'set light level' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
401-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
406+
log_v(
407+
"Sending 'set light level' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6],
408+
ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
409+
);
402410
esp_zb_lock_acquire(portMAX_DELAY);
403411
esp_zb_zcl_level_move_to_level_cmd_req(&cmd_req);
404412
esp_zb_lock_release();
@@ -407,7 +415,6 @@ void ZigbeeColorDimmerSwitch::setLightLevel(uint8_t level, uint8_t endpoint, esp
407415
}
408416
}
409417

410-
411418
void ZigbeeColorDimmerSwitch::setLightColor(uint8_t red, uint8_t green, uint8_t blue) {
412419
if (_is_bound) {
413420
//Convert RGB to XY
@@ -488,8 +495,10 @@ void ZigbeeColorDimmerSwitch::setLightColor(uint8_t red, uint8_t green, uint8_t
488495
cmd_req.color_x = color_x;
489496
cmd_req.color_y = color_y;
490497
cmd_req.transition_time = 0;
491-
log_v("Sending 'set light color' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
492-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
498+
log_v(
499+
"Sending 'set light color' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6],
500+
ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
501+
);
493502
esp_zb_lock_acquire(portMAX_DELAY);
494503
esp_zb_zcl_color_move_to_color_cmd_req(&cmd_req);
495504
esp_zb_lock_release();

‎libraries/Zigbee/src/ep/ZigbeeSwitch.cpp

+12-6
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ void ZigbeeSwitch::lightToggle(uint8_t endpoint, esp_zb_ieee_addr_t ieee_addr) {
119119
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
120120
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_TOGGLE_ID;
121121
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
122-
log_v("Sending 'light toggle' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
123-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
122+
log_v(
123+
"Sending 'light toggle' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
124+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
125+
);
124126
esp_zb_lock_acquire(portMAX_DELAY);
125127
esp_zb_zcl_on_off_cmd_req(&cmd_req);
126128
esp_zb_lock_release();
@@ -185,8 +187,10 @@ void ZigbeeSwitch::lightOn(uint8_t endpoint, esp_zb_ieee_addr_t ieee_addr) {
185187
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
186188
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_ON_ID;
187189
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
188-
log_v("Sending 'light on' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
189-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
190+
log_v(
191+
"Sending 'light on' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
192+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
193+
);
190194
esp_zb_lock_acquire(portMAX_DELAY);
191195
esp_zb_zcl_on_off_cmd_req(&cmd_req);
192196
esp_zb_lock_release();
@@ -251,8 +255,10 @@ void ZigbeeSwitch::lightOff(uint8_t endpoint, esp_zb_ieee_addr_t ieee_addr) {
251255
cmd_req.address_mode = ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT;
252256
cmd_req.on_off_cmd_id = ESP_ZB_ZCL_CMD_ON_OFF_OFF_ID;
253257
memcpy(cmd_req.zcl_basic_cmd.dst_addr_u.addr_long, ieee_addr, sizeof(esp_zb_ieee_addr_t));
254-
log_v("Sending 'light off' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
255-
endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5], ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]);
258+
log_v(
259+
"Sending 'light off' command to endpoint %d, ieee address %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", endpoint, ieee_addr[7], ieee_addr[6], ieee_addr[5],
260+
ieee_addr[4], ieee_addr[3], ieee_addr[2], ieee_addr[1], ieee_addr[0]
261+
);
256262
esp_zb_lock_acquire(portMAX_DELAY);
257263
esp_zb_zcl_on_off_cmd_req(&cmd_req);
258264
esp_zb_lock_release();

0 commit comments

Comments
 (0)
Please sign in to comment.