2
I created a code in c# to communicate with the Arduino uno. He has to pass me what the tag passed by the rfid reader and show in a textbox the value.
I added the serialport1.
Code:
serialPort1.Open();
string entrada = serialPort1.ReadLine();
serialPort1.Close();
txtIDTag.Text = entrada;
Error when executing:
An unhandled Exception of type 'System.Unauthorizedaccessexception' occurred in System.dll
Are you sure that the Arduino is connected to the door COM4?
– Woss
I’m sure yes
– Jon
Did you run the program as an administrator? It may be a lack of permission, apparently.
– Woss
Thanks for trying to help Anderson, I found the problem. The door was being used by another application.
– Jon