|
|
@ -408,7 +408,10 @@ auto BluetoothState::connect(const MacAndName& dev) -> bool { |
|
|
|
dev.mac[0], dev.mac[1], dev.mac[2], dev.mac[3], dev.mac[4], |
|
|
|
dev.mac[0], dev.mac[1], dev.mac[2], dev.mac[3], dev.mac[4], |
|
|
|
dev.mac[5]); |
|
|
|
dev.mac[5]); |
|
|
|
if (esp_a2d_source_connect(sConnectingDevice_->mac.data()) != ESP_OK) { |
|
|
|
if (esp_a2d_source_connect(sConnectingDevice_->mac.data()) != ESP_OK) { |
|
|
|
return false; |
|
|
|
ESP_LOGI(kTag, "Connecting failed..."); |
|
|
|
|
|
|
|
if (sConnectAttemptsRemaining_>1) { |
|
|
|
|
|
|
|
ESP_LOGI(kTag, "Will retry."); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
transit<Connecting>(); |
|
|
|
transit<Connecting>(); |
|
|
|