def connect(self): c = Config("gsm_settings/" + self.device.Address) if c.props.apn == None: c.props.apn = "" if c.props.number == None: c.props.number = "*99#" m = Mechanism() m.PPPConnect(self.port, c.props.number, c.props.apn, reply_handler=self.on_connected, error_handler=self.on_error, timeout=200)
def connect(self): c = Config( "org.blueman.gsmsettings", "/org/blueman/gsmsettings/%s/" % self.service.device.Address) m = Mechanism() m.PPPConnect(self.port, c["number"], c["apn"], reply_handler=self.on_connected, error_handler=self.on_error, timeout=200)