Hey Antony, we haven’t tried the BLE sensor with WinIOT. It’s an interesting idea, but haven’t tried it yet. We’ll have to take a look, but you’re having trouble sending AT commands out of the serial, is that right?
I can read successfully data received on my SerialDevice.InputStream, however, when i write something on SerialDevice.OutputStream using a DataWriter, nothing seems to happen… even if it’s not AT commands, nothing is received on the paired Bluetooth client.
async Task WriteToSerial(string data)
{
// Create the DataWriter object and attach to OutputStream
DataWriter dataWriteObject = new DataWriter(Serial.OutputStream);
try
{
//Serial.OutputStream.AsStreamForWrite().Write(Encoding.ASCII.GetBytes(data), 0, Encoding.ASCII.GetBytes(data).Length);
// Load the text from the sendText input text box to the dataWriter object
dataWriteObject.WriteString(data);
uint bytesWritten = await dataWriteObject.StoreAsync();
if (bytesWritten > 0)
{
Debug.WriteLine(bytesWritten + " bytes written success");
}
}
finally
{
dataWriteObject.DetachStream();
}
}