diff options
author | Albin Olsson <albin.olsson@cybercom.com> | 2013-08-30 12:56:31 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-03 13:18:53 +0200 |
commit | 5611ad387a9ff1f6383773d6108f257a1338e921 (patch) | |
tree | c8439056199bebc94f535c8293c072d048c29132 /src/positioning/doc/src | |
parent | d26ab7e17cebbdf0ad3fe7ea5208dec8ac8dcef8 (diff) | |
download | qtlocation-5611ad387a9ff1f6383773d6108f257a1338e921.tar.gz |
Implement socket NMEA source.
nmeaSource property of PositionSource is limited to log files. This
change adds possibility of using a TCP socket instead. This is a lot
more useful when testing because it can be used with a simulator.
Change-Id: Ie6fb2b5344aae2702a8cf53d0146780d6ea1e0f9
Reviewed-by: Albin Olsson <albin.olsson@cybercom.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/positioning/doc/src')
-rw-r--r-- | src/positioning/doc/src/qml-position.qdoc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/positioning/doc/src/qml-position.qdoc b/src/positioning/doc/src/qml-position.qdoc index 850bdd35..3ccac326 100644 --- a/src/positioning/doc/src/qml-position.qdoc +++ b/src/positioning/doc/src/qml-position.qdoc @@ -95,7 +95,19 @@ within the limits allowed by the platform, of the source of the geographical data. Apart from tradtional sources such as GPS and cell data the positional data can be sourced from a logfile which is in NMEA format. -\l {http://en.wikipedia.org/wiki/NMEA}{NMEA} is a common text-based protocol for specifying navigational data. For convenience, the \l {PositionSource::nmeaSource}{nmeaSource} property is provided to enable QML applications to read NMEA data from a log file, the source will emit updates according to the time stamp of each NMEA sentence to produce a "replay" of the recorded data. +\l {http://en.wikipedia.org/wiki/NMEA}{NMEA} is a common text-based +protocol for specifying navigational data. For convenience, the \l +{PositionSource::nmeaSource}{nmeaSource} property is provided to enable +QML applications to read NMEA data from a log file or a TCP socket, the +source will emit updates according to the time stamp of each NMEA sentence +to produce a "replay" of the recorded data. To use a TCP socket set the +"socket" uri scheme. + +\code +PositionSource { + nmeaSource: "socket://127.0.0.1:12345" +} +\endcode |