Re: Fwd: How to get GPS NMEA in C from ModemManager?



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_content/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.

Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]