2
It is possible via code line to check whether a COM port is connected or not ?
Analysis: I have a program PDV(Point of Sale) where the same has the integration with Sitef, through a Pinpad(cardboard machine) and for it to work, the Pinpad has to be connected in a COM port.
Pinpad Connected:
Now, in order to make the system more robust and avoid exception
when attempting to perform the procedure with the Pinpad, if it is not connected, I would like to check via code line whether or not it is connected and assign this verification in the respective events that make the integration.