Click or drag to resize

GpsReceiverDetectGps(SerialBaudRate, SerialBaudRate, SerialCommPort, SerialBaudRate) Method

Detects the first GPS receiver connected to the system and returns as output parameters the communication port and baud rate. Only baud rate values between startBaudRate and endBaudRate are checked.

Namespace: ZylSoft.Gps
Assembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.32.9621.18621
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public bool DetectGps(
	SerialBaudRate startBaudRate,
	SerialBaudRate endBaudRate,
	out SerialCommPort port,
	out SerialBaudRate baudRate
)

Parameters

startBaudRate  SerialBaudRate
The lower baud rate limit used at the detection process.
endBaudRate  SerialBaudRate
The higher baud rate limit used at the detection process.
port  SerialCommPort
The serial port where the GPS receiver is connected to.
baudRate  SerialBaudRate
Baud rate of the communication.

Return Value

Boolean
Returns true, if a GPS receiver was detected, otherwise false.
See Also