1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-13 15:23:49 +01:00

[bluetooth_proxy] Optimize memory usage with fixed-size array and const string references (#10015)

This commit is contained in:
J. Nick Koston
2025-08-04 15:13:55 -10:00
committed by GitHub
parent 52634dac2a
commit 93b28447ee
3 changed files with 19 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ class BLEClientBase : public espbt::ESPBTClient, public Component {
(uint8_t) (this->address_ >> 0) & 0xff);
}
}
std::string address_str() const { return this->address_str_; }
const std::string &address_str() const { return this->address_str_; }
BLEService *get_service(espbt::ESPBTUUID uuid);
BLEService *get_service(uint16_t uuid);