mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
The final fixes for the socket code allowing us to advertise and accept the connection.
PiperOrigin-RevId: 401317340
This commit is contained in:
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();
|
||||
|
||||
Reference in New Issue
Block a user