SerialGPS objects
The SerialPort property specifies the serial port used by the GPS device. For Bluetooth devices, the value of this property is typically COM8.
Type the value in the SerialPort box on the General page of the Object’s Properties view.
The SerialPort property takes a string value. This example overrides the default serial port before opening a GPS connection and getting a location fix:
gps_1.SerialPort = "COM5:" //override default com8 port
gps_1.ConfigParams = "buffersize=2000,refresh=2000,"& + "timeout=5000,multithread=0"
rc = gps_1.Open()
IF rc = 1 THEN
rc = gps_1.GetFix(myFix)
... //process data
ELSE //process error msg
END IF
rc = gps_1.Close()
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |