Re: Preferred way to get signal information

2018-10-24 Thread Nick B
Hey Aleksander and Matthew, thanks for the advice! So changing the mmcli output into key value pairs is on the table? I had three different ways to get the current modem device for luci-proto-modemmanager, but went head with parsing mmcli output ( :D ) since it seemed to be the most straightfo

Re: Preferred way to get signal information

2018-10-03 Thread Aleksander Morgado
Hey! > If your using c/c++ consider looking into the library ModemManager > exposes, this is how mmcli works > (https://cgit.freedesktop.org/ModemManager/ModemManager/tree/libmm-glib). > It handles the dbus calls for you and just exposes some nice c code > wrappers. In your case you should look at

Re: Preferred way to get signal information

2018-10-03 Thread Aleksander Morgado
Hey Nick, > Is there a preferred way to get the signal information from modem manager > periodically for the purposes of illuminating some LED’s? Currently I am > running mmcli -m 0 and using grep to strip it down to just the number and > taking action based on that value. (—signal-get is not

Re: Preferred way to get signal information

2018-10-02 Thread matthew stanger
Hi Nick, If your using c/c++ consider looking into the library ModemManager exposes, this is how mmcli works (https://cgit.freedesktop.org/ModemManager/ModemManager/tree/libmm-glib). It handles the dbus calls for you and just exposes some nice c code wrappers. In your case you should look at how '

Preferred way to get signal information

2018-10-02 Thread Nick B
Good day, Is there a preferred way to get the signal information from modem manager periodically for the purposes of illuminating some LED’s? Currently I am running mmcli -m 0 and using grep to strip it down to just the number and taking action based on that value. (—signal-get is not produci