This is the fix for StartDiscovery/Connect/Disconnect/StartDiscovery.

PiperOrigin-RevId: 424866263
This commit is contained in:
jfcarroll
2022-02-02 11:45:04 -08:00
committed by hai007
parent 5bc20e2ea4
commit 1e61c5fb23
3 changed files with 69 additions and 40 deletions
@@ -23,10 +23,6 @@ namespace windows {
BluetoothSocket::BluetoothSocket(StreamSocket streamSocket)
: windows_socket_(streamSocket) {
bluetooth_device_ = std::make_unique<BluetoothDevice>(
winrt::Windows::Devices::Bluetooth::BluetoothDevice::FromHostNameAsync(
windows_socket_.Information().RemoteHostName())
.get());
input_stream_ =
std::make_unique<BluetoothInputStream>(windows_socket_.InputStream());
output_stream_ =