(self, args)
Handles the event for reporting connection status.

        args -- dictionary containing the connection status flags ('flags'),
            device address ('address'), device address type ('address_type'),
            connection interval ('conn_interval'), connection timeout
            (timeout'), device latency ('latency'), device bond handle
            ('bonding')
Handles the event for reporting connection status.
Handles the event for reporting connection status .
def _ble_evt_connection_status(self, args):
        """
        Handles the event for reporting connection status.

        args -- dictionary containing the connection status flags ('flags'),
            device address ('address'), device address type ('address_type'),
            connection interval ('conn_interval'), connection timeout
            (timeout'), device latency ('latency'), device bond handle
            ('bonding')
        """
        connection_handle = args['connection_handle']
        if not self._connection_status_flag(
                args['flags'],
                constants.connection_status_flag['connected']):
            # Disconnected
            self._connections.pop(connection_handle, None)

        log.info("Connection status: handle=0x%x, flags=%s, address=0x%s, "
                 "connection interval=%fms, timeout=%d, "
                 "latency=%d intervals, bonding=0x%x",
                 connection_handle,
                 args['flags'],
                 hexlify(bytearray(args['address'])),
                 args['conn_interval'] * 1.25,
                 args['timeout'] * 10,
                 args['latency'],
                 args['bonding'])
def _ble_evt_connection_status ( self , args ) : connection_handle = args [ 'connection_handle' ] if not self . _connection_status_flag ( args [ 'flags' ] , constants . connection_status_flag [ 'connected' ] ) : # Disconnected self . _connections . pop ( connection_handle , None ) log . info ( "Connection status: handle=0x%x, flags=%s, address=0x%s, " "connection interval=%fms, timeout=%d, " "latency=%d intervals, bonding=0x%x" , connection_handle , args [ 'flags' ] , hexlify ( bytearray ( args [ 'address' ] ) ) , args [ 'conn_interval' ] * 1.25 , args [ 'timeout' ] * 10 , args [ 'latency' ] , args [ 'bonding' ] )