Skip to content

Commit

Permalink
Log product name and model
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris committed Jan 4, 2024
1 parent 9fc9c58 commit c93099a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/awox_mesh/mesh_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ void MeshDevice::handle_packet(std::string &packet) {
device->device_info = this->device_info_resolver->get_by_product_id(
get_product_code(static_cast<unsigned char>(packet[11]), static_cast<unsigned char>(packet[12])));

ESP_LOGD(TAG, "MAC report, dev [%d]: productID: %02X mac: %s => %s", mesh_id, device->device_info->get_product_id(),
ESP_LOGD(TAG, "MAC report, dev [%d]: productID: 0x%02X (%s - %s) mac: %s => %s", mesh_id,
device->device_info->get_product_id(), device->device_info->get_name(), device->device_info->get_model(),
device->mac.c_str(), TextToBinaryString(packet).c_str());

this->send_discovery(device);
Expand Down

0 comments on commit c93099a

Please sign in to comment.