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
i'm using SerialPortLib for communicating with Arduino Mega 2560.
My code written like in Example usage manual section.
Sending data to serial is correct, but the event MessageReceived does not raise.
is any suggestions about my problem?
Thank you.
var serialPort = new SerialPortInput();
serialPort.ConnectionStatusChanged += SerialPort_ConnectionStatusChanged;
serialPort.MessageReceived += SerialPort_MessageReceived;
serialPort.SetPort("COM3", 250000);
serialPort.Connect();
foreach (var workContext in WorkContexts.Where(c=>c != null)) {
var cmd = workContext.CommandFrame;
var message = Encoding.UTF8.GetBytes(cmd);
serialPort.SendMessage(message);
Console.WriteLine($">> {cmd}");
}
...
The text was updated successfully, but these errors were encountered:
Sorry for my English.
i'm using SerialPortLib for communicating with Arduino Mega 2560.
My code written like in Example usage manual section.
Sending data to serial is correct, but the event MessageReceived does not raise.
is any suggestions about my problem?
Thank you.
The text was updated successfully, but these errors were encountered: