1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-22 19:53:46 +01:00

Include Bluetooth connection slot allocations in connections free message (#8148)

This commit is contained in:
J. Nick Koston
2025-01-27 16:57:52 -10:00
committed by GitHub
parent dbf4c2c4da
commit dd18a219db
4 changed files with 21 additions and 0 deletions

View File

@@ -475,6 +475,11 @@ void BluetoothProxy::send_connections_free() {
api::BluetoothConnectionsFreeResponse call;
call.free = this->get_bluetooth_connections_free();
call.limit = this->get_bluetooth_connections_limit();
for (auto *connection : this->connections_) {
if (connection->address_ != 0) {
call.allocated.push_back(connection->address_);
}
}
this->api_connection_->send_bluetooth_connections_free_response(call);
}