Skip to content

Instantly share code, notes, and snippets.

@OberdanBrito
Created June 25, 2020 10:11
Show Gist options
  • Save OberdanBrito/bae792c46536ef74ade486c411bcbf64 to your computer and use it in GitHub Desktop.
Save OberdanBrito/bae792c46536ef74ade486c411bcbf64 to your computer and use it in GitHub Desktop.
private static SerialPort _serialPort;
/// <summary>
/// Este sistema utiliza a entrada do windows system32 através da leitura em Win32_PnPEntity
/// Ao fazer a leitura das informações o sistema irá filtrar por informações do fabricante
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
_serialPort = new SerialPort
{
// Indica que os bytes nulos serão ignorados durante a transmissão
DiscardNull = true
};
Console.WriteLine("Iniciando o serviço de identificação RFID");
// Tenta fazer a detecção do hardware
AutodetectArduinoPort();
Console.ReadKey();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment