mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Added connect retry for Bluetooth
PiperOrigin-RevId: 522382120
This commit is contained in:
committed by
Copybara-Service
parent
d65c4cea82
commit
097ff07811
@@ -131,6 +131,9 @@ class BluetoothSocket : public api::BluetoothSocket {
|
||||
Buffer write_buffer_{kMaxTransmitPacketSize};
|
||||
};
|
||||
|
||||
bool InternalConnect(HostName connectionHostName,
|
||||
winrt::hstring connectionServiceName);
|
||||
|
||||
winrt::fire_and_forget Listener_ConnectionStatusChanged(
|
||||
winrt::Windows::Devices::Bluetooth::BluetoothDevice device,
|
||||
winrt::Windows::Foundation::IInspectable const& args);
|
||||
@@ -143,6 +146,7 @@ class BluetoothSocket : public api::BluetoothSocket {
|
||||
winrt::Windows::Devices::Bluetooth::BluetoothDevice native_bluetooth_device_{
|
||||
nullptr};
|
||||
winrt::event_token connection_status_changed_token_{};
|
||||
int connect_called_count_ = 0;
|
||||
};
|
||||
|
||||
} // namespace windows
|
||||
|
||||
Reference in New Issue
Block a user