ofono_client: Print debug information about network registration changes

Change-Id: I61414c49544b7553058d2979b152fde95e0a3b58
This commit is contained in:
Pau Espin 2017-05-31 12:05:20 +02:00
parent f8e6186406
commit 56bf31c82a
1 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,7 @@ class Modem(log.Origin):
self.dbus = ModemDbusInteraction(self.path)
self.dbus.required_signals = {
I_SMS: ( ('IncomingMessage', self._on_incoming_message), ),
I_NETREG: ( ('PropertyChanged', self._on_netreg_property_changed), ),
}
self.dbus.watch_interfaces()
@ -319,6 +320,9 @@ class Modem(log.Origin):
def ki(self):
return self.conf.get('ki')
def _on_netreg_property_changed(self, name, value):
self.dbg('%r.PropertyChanged() -> %s=%s' % (I_NETREG, name, value))
def connect(self, nitb):
'set the modem up to connect to MCC+MNC from NITB config'
self.log('connect to', nitb)