The final fixes for the socket code allowing us to advertise and accept the connection.

PiperOrigin-RevId: 401317340
This commit is contained in:
jfcarroll
2021-10-06 12:53:43 -07:00
committed by Copybara-Service
parent beff51e626
commit 941c9b3c5c
@@ -119,8 +119,8 @@ BluetoothSocket::BluetoothOutputStream::BluetoothOutputStream(
Exception BluetoothSocket::BluetoothOutputStream::Write(const ByteArray& data) {
Buffer buffer = Buffer(data.size());
std::memcpy(buffer.data(), data.data(), data.size());
buffer.Length(data.size());
try {
winrt_stream_.WriteAsync(buffer).get();