You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the reading operation on the serial port the "SerialData.Chars" event doesn't never fire up and "serialDevice.BytesToRead" is always 0.
Instead, if WatchChar is defined, "SerialData.WatchChar" event is successfully fired up.
private static void SerialDataReceivedEventHandler(object sender, SerialDataReceivedEventArgs e)
{
if (e.EventType == SerialData.Chars)
{
Console.WriteLine("Chars event"); // This never works!!!!!!!!!!
}
else if (e.EventType == SerialData.WatchChar)
{
Console.WriteLine("WatchChar event"); // This is OK if WatchChar is defined!!!
}
}
The text was updated successfully, but these errors were encountered:
Details about Problem
nanoFramework area: (C# code)
VS version: (2017)
VS extension version: (1.4.0.196)
Target: (ESP32_WROOM_32)
Device capabilities output:
Description
During the reading operation on the serial port the "SerialData.Chars" event doesn't never fire up and "serialDevice.BytesToRead" is always 0.
Instead, if WatchChar is defined, "SerialData.WatchChar" event is successfully fired up.
Sample Project
Serial configuration on esp32
Event handler:
The text was updated successfully, but these errors were encountered: