(self, peripheral)
Create an instance of the CoreBluetooth device from the provided
        CBPeripheral instance.
Create an instance of the CoreBluetooth device from the provided
        CBPeripheral instance.
Create an instance of the CoreBluetooth device from the provided CBPeripheral instance .
def __init__(self, peripheral):
        """Create an instance of the CoreBluetooth device from the provided
        CBPeripheral instance.
        """
        self._peripheral = peripheral
        self._advertised = []
        self._discovered_services = set()
        self._char_on_changed = {}
        self._rssi = None
        # Events to signify when an asyncronous request has finished.
        self._connected = threading.Event()
        self._disconnected = threading.Event()
        self._discovered = threading.Event()
        self._rssi_read = threading.Event()
def __init__ ( self , peripheral ) : self . _peripheral = peripheral self . _advertised = [ ] self . _discovered_services = set ( ) self . _char_on_changed = { } self . _rssi = None # Events to signify when an asyncronous request has finished. self . _connected = threading . Event ( ) self . _disconnected = threading . Event ( ) self . _discovered = threading . Event ( ) self . _rssi_read = threading . Event ( )