def start(self): self.sent_messages = 0 self.received_messages = 0 self.modem = pygsm.GsmModem( logger=self.gsm_log, **self.modem_kwargs) # If we got the connection, call superclass to # start the run loop--it just sets self._running to True # and calls run. if self.modem is not None: BackendBase.start(self)
def start(self): self.sent_messages = 0 self.failed_messages = 0 self.received_messages = 0 self.modem = pygsm.GsmModem( logger=self.gsm_log, **self.modem_kwargs) # if we connected successfully to the modem, call # superclass to start the run loop -- it just sets # self._running to True and calls run. if self.modem is not None: BackendBase.start(self)