From 8b09a5259e56c3ffc76bc5c78d3e4c42cfd4d07c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 20 Jul 2025 19:48:19 -1000 Subject: [PATCH] preen --- esphome/components/bluetooth_proxy/bluetooth_proxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index 66423d201d..e5bc626d1b 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -344,7 +344,8 @@ void BluetoothProxy::bluetooth_gatt_write(const api::BluetoothGATTWriteRequest & return; } - auto err = connection->write_characteristic(msg.handle, msg.data_ptr_, msg.data_len_, msg.response); + auto err = connection->write_characteristic(msg.handle, reinterpret_cast(msg.data.data()), + msg.data.size(), msg.response); if (err != ESP_OK) { this->send_gatt_error(msg.address, msg.handle, err); } @@ -372,7 +373,8 @@ void BluetoothProxy::bluetooth_gatt_write_descriptor(const api::BluetoothGATTWri return; } - auto err = connection->write_descriptor(msg.handle, msg.data_ptr_, msg.data_len_, true); + auto err = connection->write_descriptor(msg.handle, reinterpret_cast(msg.data.data()), + msg.data.size(), true); if (err != ESP_OK) { this->send_gatt_error(msg.address, msg.handle, err); }