Hi everyone!
I need your help! I'm writting a program to comunicates a PC with a
PinPad trought serial port... I'm using _bios_serialcom from bios.h...
But when I tried to send some data it doesn't work and the return code
from _bios_serialcom starts with 8... I don't know what I'm doing
wrong... Any help would be appreciate!
Here is my fuction sendcommand:
sendcommand(unsigned serial_port, char *pString, short nStringLen)
{
short i;
short nComStatus;
for(i = 0; i < nStringLen; i++)
nComStatus = _bios_serialcom(_COM_SEND, serial_port, pString[i]);
return(nComStatus);
}
Thanks in advance!