Included with Qt Location is a position plugin which parses NMEA sentences streamed over a serial port into position updates.
This plugin can be loaded by using the provider name serialnmea.
The following table lists parameters that can be passed to the serialnmea plugin.
Parameter | Description |
---|---|
serialnmea.serial_port | The serial port where the NMEA stream is coming. |
The following examples show how to create a serialnmea PositionSource listening on a specific serial port
PositionSource { name: "serialnmea" PluginParameter { name: "serialnmea.serial_port"; value: "tnt1" } }
QVariantMap params; params["serialnmea.serial_port"] = "tnt1"; QGeoPositionInfoSource *positionSource = QGeoPositionInfoSource::createSource("serialnmea", params, this);
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/position-plugin-serialnmea.html