From c93099a1b5669369b8ae6f20bb1011ea1d51ee53 Mon Sep 17 00:00:00 2001 From: Frans Saris Date: Thu, 4 Jan 2024 13:16:09 +0100 Subject: [PATCH] Log product name and model --- components/awox_mesh/mesh_device.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/awox_mesh/mesh_device.cpp b/components/awox_mesh/mesh_device.cpp index 0c9cbaf..d9c6e87 100644 --- a/components/awox_mesh/mesh_device.cpp +++ b/components/awox_mesh/mesh_device.cpp @@ -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(packet[11]), static_cast(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);