Код: Выделить всё
using System.IO.Ports;
Console.WriteLine ("Hello, Serial Ports!");
string [] ports = SerialPort.GetPortNames ();
foreach (string port in ports)
{
Console.WriteLine (port);
}
Console.WriteLine ("Bye !");
< /code>
Программа работает, написание < /p>
Hello, Serial Ports!
Bye !
< /code>
к консоли, но ничего более. < /p>
ОС - Debian12. Пользователь является членом группы Dialout Код: Выделить всё
dmesg | grep ttyS
Я не могу понять, что я делаю неправильно. Любое предложение будет оценено.
Подробнее здесь: https://stackoverflow.com/questions/797 ... p-on-linux
Мобильная версия