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



On Tue, 2016-06-07 at 14:28 -0700, serena dadak wrote:
not pretty for sure.
Any samples on using libmm calls? Would that be a possibility?

libmm-glib is based off GLib/GDBus, so yes that's a possibility.  See
cli/mmcli-modem-location.c for how that would work, I think the code
there can also run synchronously and not require an external event
loop.

Dan

On Tue, Jun 7, 2016 at 2:10 PM, Dan Williams <dcbw redhat com> 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_co
ntent/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]