Created
June 25, 2020 10:11
-
-
Save OberdanBrito/bae792c46536ef74ade486c411bcbf64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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