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 Williamswrote: > > > > > 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 > > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Fwd: How to get GPS NMEA in C from ModemManager?
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 ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Fwd: How to get GPS NMEA in C from ModemManager?
not pretty for sure. Any samples on using libmm calls? Would that be a possibility? On Tue, Jun 7, 2016 at 2:10 PM, Dan Williamswrote: > 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 > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
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 ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Fwd: How to get GPS NMEA in C from ModemManager?
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. sincerely ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list