Re: Fwd: How to get GPS NMEA in C from ModemManager?
- From: Bastien Nocera <hadess hadess net>
- To: Dan Williams <dcbw redhat com>, serena dadak <amir dady gmail com>, networkmanager-list gnome org
- Subject: Re: Fwd: How to get GPS NMEA in C from ModemManager?
- Date: Tue, 07 Jun 2016 23:49:49 +0200
On Tue, 2016-06-07 at 16:10 -0500, Dan Williams wrote:
On Tue, 2016-06-07 at 13:40 -0700, serena dadak wrote:
hello there
Is there any sample code to get NMEA strings from MM in C?
I looked at the example codes in NM but didn't have much luck on
finding
samples for GPS.
You'd use the libdbus C bindings or (easier) glib-based ones with
GDBus. For example, raw libdbus looks like this:
http://maemo.org/development/training/maemo_platform_development_cont
ent/plain_html/node10/
and it isn't exactly pretty. Using a binding, whether that's dbus-
glib, dbus-qt, GDBus, or something else is usually a lot easier.
Or use geoclue, and get all that for free:
https://www.freedesktop.org/software/geoclue/docs/libgeoclue/GClueSimple.html
Cheers
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]