Datasat AP25 Installation And Operating Manual page 170

Table of Contents

Advertisement

int count=0;
for( int i=0; i<RX_BUF_SIZE; i++ )
{
// read 1-by-1.
int ret = read(fd, &c, 1);
if ( ret < 0 )
{
printf( "Count=%d, Error\n", count );
close(fd);
fd = -1;
}
if (ret == 1)
{
// add to buffer
rxBuf[count++] = c;
if( c == '\r' )
{
rxBuf[count] = 0;
printf( "%s\n", rxBuf );
break;
}
}
}
return 0;
}
/* ======================================================================== **
*
# # #
End of Ap20NetCmd.cpp
* ======================================================================== */
Appendix H. Serial Command AP!
AP25 Installation and Operating Guide
// End of response
# # #
H-14
Version 1.00
Document #: 9301H79500 Ver. 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AP25 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents