Пример #1
0
 def __init__(self):
     CRTPDriver.__init__(self)
     self.prrt_socket = None
     self.uri = ''
     self.link_error_callback = None
     self.packet_log = None
     self.log_index = 0
     logger.info('Initialized PRRT driver.')
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cradio = None
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
Пример #3
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cfusb = None
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
 def __init__(self):
     CRTPDriver.__init__(self)
     self.ser = None
     self.uri = ''
     self.link_error_callback = None
     self.in_queue = None
     self.out_queue = None
     self._receive_thread = None
     self._send_thread = None
     logger.info('Initialized serial driver.')
Пример #5
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self._radio_manager = None
     self.uri = ''
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = True
Пример #6
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cfusb = None
     self.uri = ''
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = False
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = True
     self._profile = None
     self._radio_id = None
Пример #8
0
    def __init__(self, address=None):
        CRTPDriver.__init__(self)
        self.address_give = address
        self.needs_resending = True
        self.in_queue = queue.Queue()

        self.pid = 0
        self.service = None
        self.crtp = None
        self.crtp_up = None
        self.crtp_down = None

        self.scanner = b.btle.Scanner()
        self.peripheral = b.btle.Peripheral()
        self.peripheral.setDelegate(MyDelegate(self.in_queue))