GeoCOM Reference Manual
5.3.5
COM_GetBaudRate - Get Current Baud Rate
COM_GetBaudRate ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ -
C-Declaration
COM_GetBaudRate ( COM_BAUD_RATE &eRate )
VB-Declaration
VB_COM_GetBautRate( eRate As Long )
ASCII-Request
-
ASCII-Response
-
Remarks
Get the current baud rate of the serial line. It should be the setting of both
client and server. In ASCII protocol, this RPC is not available.
Parameters
eRate
Return Codes
RC_OK
See Also
COM_SetBaudRate
Example
void main()
{
RC_TYPE
COM_BAUD_RATE
// init GeoCOM
...
// get baud rate of active connection
TPS1100 - Version 1.05
Out
On successful completion.
rc = COM_GetBaudRate(eRate);
if (rc != RC_OK)
{
COM_ViewError(rc, "Setup baud rate");
}
else
{
printf("Baudrate is %d Baud = " );
switch (eRate )
{
Baud rate of serial line.
rc;
eRate;
Communication Settings
5-12