[esp32_ble_tracker] Simplify BLE client state machine by removing READY_TO_CONNECT (#10672)

This commit is contained in:
J. Nick Koston
2025-09-11 15:54:34 -05:00
committed by GitHub
parent 3240e19a7c
commit bbef0e173e
3 changed files with 15 additions and 18 deletions

View File

@@ -51,8 +51,6 @@ const char *client_state_to_string(ClientState state) {
return "IDLE";
case ClientState::DISCOVERED:
return "DISCOVERED";
case ClientState::READY_TO_CONNECT:
return "READY_TO_CONNECT";
case ClientState::CONNECTING:
return "CONNECTING";
case ClientState::CONNECTED:
@@ -795,7 +793,7 @@ void ESP32BLETracker::try_promote_discovered_clients_() {
#ifdef USE_ESP32_BLE_SOFTWARE_COEXISTENCE
this->update_coex_preference_(true);
#endif
client->set_state(ClientState::READY_TO_CONNECT);
client->connect();
break;
}
}