Command to initialize the serial port which is connected to Arduino
res=open_serial(nHandle, nPort,baudrate)
Board number, reserved for future use. For this version, any number would do
Com port in which the Arduino is connected to
baudrate for the serial comminication
0 if the connection is successful, else the connection fail
To connect to the Arduino board. To check the port number, do to the device manager or check it from the Arduino software