コード例 #1
0
ファイル: gsm.py プロジェクト: oluka/mapping_rapidsms
    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)
コード例 #2
0
ファイル: gsm.py プロジェクト: oluka/rapidsms
    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)