Module Import alias Import alias Import alias ImportFrom alias Import alias identifier Import alias Import alias Assign NameStore ListLoad Str Str Str Str Str Str Str For NameStore NameLoad body Exec BinOpMod Str TupleLoad NameLoad NameLoad Delete NameDel FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad NameLoad body Assign NameStore Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Str If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad BinOpMult Num Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Continue Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpDiv NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq NameLoad NameLoad body For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad NameLoad body For NameStore Call NameLoad Num Num Num body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list ClassDef bases body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameLoad If CompareEq NameLoad Num body Assign NameStore TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Str For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body Exec BinOpMod NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad Delete NameDel NameDel decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str ListLoad ListLoad Str Str ListLoad body If BoolOpAnd CompareNotEq NameLoad Str UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str For TupleStore NameStore NameStore NameLoad body If BoolOpOr UnaryOpNot Call NameLoad NameLoad CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad orelse Assign NameStore ListLoad NameLoad Assign NameStore ListLoad If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str TryExcept body For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Continue If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpMult Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Num NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Num NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Raise Call NameLoad Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Num Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While BoolOpOr AttributeLoad NameLoad attr CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Import alias If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Index Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd Num BinOpMult Num NameLoad BinOpAdd BinOpAdd Num BinOpMult Num NameLoad Num Assign NameStore SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Num BinOpMult Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Num BinOpMult Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpAdd BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad Num Assign NameStore BinOpBitOr BinOpBitOr BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpAdd BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Index Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd Num BinOpMult Num NameLoad BinOpAdd BinOpAdd Num BinOpMult Num NameLoad Num Assign NameStore SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Num BinOpMult Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Num BinOpMult Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpAdd BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad Num Assign NameStore BinOpBitOr BinOpBitOr BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpAdd BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Num BinOpMult Num NameLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num If CompareNotEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num If CompareEq NameLoad Num body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Index Num handlers ExceptHandler type NameLoad body Assign NameStore Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad orelse Pass orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr orelse Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body If BoolOpAnd CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareGt Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Print BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Str decorator_list decorator_list
N/A N/A sys N/A struct N/A binascii btcommon * N/A _bluetooth _bt N/A array N/A fcntl N/A _constants N/A HCI RFCOMM L2CAP SCO SOL_L2CAP SOL_RFCOMM L2CAP_OPTIONS N/A _c _constants N/A N/A N/A %s = _bt.%s N/A _c _c N/A _constants discover_devices N/A N/A duration flush_cache lookup_names N/A 8 True False N/A N/A sock N/A _gethcisock N/A N/A N/A results N/A N/A _bt hci_inquiry sock duration duration flush_cache True N/A N/A N/A N/A _bt error N/A N/A N/A N/A sock close N/A N/A BluetoothError error communicating with local bluetooth adapter N/A lookup_names N/A N/A pairs N/A N/A addr results N/A N/A timeoutms N/A int N/A 10 1000 N/A N/A N/A name N/A N/A _bt hci_read_remote_name sock addr timeoutms N/A N/A N/A N/A _bt error N/A e N/A N/A N/A N/A N/A pairs append N/A addr name N/A N/A N/A sock close N/A pairs N/A N/A N/A N/A sock close N/A results N/A lookup_name N/A N/A address timeout N/A 10 N/A N/A N/A N/A is_valid_address address N/A N/A N/A BluetoothError N/A %s is not a valid Bluetooth address address N/A sock N/A _gethcisock N/A timeoutms N/A int N/A timeout 1000 N/A N/A N/A name N/A N/A _bt hci_read_remote_name sock address timeoutms N/A N/A N/A N/A _bt error N/A e N/A N/A name None N/A N/A N/A sock close N/A name N/A set_packet_timeout N/A N/A address timeout N/A N/A N/A 
    Adjusts the ACL flush timeout for the ACL connection to the specified
    device.  This means that all L2CAP and RFCOMM data being sent to that
    device will be dropped if not acknowledged in timeout milliseconds (maximum
    1280).  A timeout of 0 means to never drop packets.

    Since this affects all Bluetooth connections to that device, and not just
    those initiated by this process or PyBluez, a call to this method requires
    superuser privileges.

    You must have an active connection to the specified device before invoking
    this method
     N/A n N/A round N/A timeout 0.625 N/A N/A _write_flush_timeout address n N/A get_l2cap_options N/A N/A sock N/A N/A N/A get_l2cap_options (sock, mtu)

    Gets L2CAP options for the specified L2CAP socket.
    Options are: omtu, imtu, flush_to, mode, fcs, max_tx, txwin_size.
     N/A s N/A N/A sock getsockopt SOL_L2CAP L2CAP_OPTIONS 12 N/A options N/A list N/A N/A struct unpack HHHBBBH s N/A options N/A set_l2cap_options N/A N/A sock options N/A N/A N/A set_l2cap_options (sock, options)

    Sets L2CAP options for the specified L2CAP socket.
    The option list must be in the same format supplied by
    get_l2cap_options().
     N/A s N/A N/A struct pack HHHBBBH options N/A N/A N/A sock setsockopt SOL_L2CAP L2CAP_OPTIONS s N/A set_l2cap_mtu N/A N/A sock mtu N/A N/A N/A set_l2cap_mtu (sock, mtu)

    Adjusts the MTU for the specified L2CAP socket.  This method needs to be
    invoked on both sides of the connection for it to work!  The default mtu
    that all L2CAP connections start with is 672 bytes.

    mtu must be between 48 and 65535, inclusive.
     N/A options N/A get_l2cap_options sock N/A N/A options N/A 0 N/A options N/A 1 mtu N/A N/A set_l2cap_options sock options N/A _get_available_port N/A N/A protocol N/A N/A N/A 
    deprecated.  bind to PORT_ANY instead.
     N/A N/A protocol RFCOMM N/A N/A channel N/A range 1 31 N/A N/A s N/A BluetoothSocket RFCOMM N/A N/A N/A N/A N/A s bind N/A channel N/A N/A N/A s close N/A channel N/A N/A N/A N/A N/A N/A s close N/A N/A N/A protocol L2CAP N/A N/A psm N/A range 4097 32768 2 N/A N/A s N/A BluetoothSocket L2CAP N/A N/A N/A N/A N/A s bind N/A psm N/A N/A N/A s close N/A psm N/A N/A N/A N/A N/A N/A s close N/A N/A N/A ValueError protocol must either RFCOMM or L2CAP N/A BluetoothSocket N/A N/A N/A __doc__ N/A N/A _bt btsocket __doc__ __init__ N/A N/A self proto _sock N/A RFCOMM None N/A N/A N/A _sock None N/A N/A _sock N/A N/A _bt btsocket proto N/A N/A self _sock _sock N/A N/A self _proto proto N/A dup N/A N/A self N/A N/A N/A dup () -> socket object

        Return a new socket object connected to the same system resource. N/A N/A BluetoothSocket proto N/A self _proto _sock N/A self _sock N/A accept N/A N/A self N/A N/A N/A N/A N/A N/A client addr N/A N/A N/A self _sock accept N/A N/A N/A N/A _bt error N/A e N/A N/A N/A BluetoothError N/A str e N/A newsock N/A BluetoothSocket N/A self _proto client N/A N/A newsock addr N/A N/A N/A accept __doc__ N/A N/A N/A _bt btsocket accept __doc__ bind N/A N/A self addrport N/A N/A N/A N/A N/A N/A self _proto RFCOMM N/A N/A self _proto L2CAP N/A N/A N/A addr port addrport N/A N/A port 0 N/A N/A addrport N/A addr N/A _get_available_port N/A self _proto N/A N/A N/A N/A self _sock bind addrport N/A get_l2cap_options N/A N/A self N/A N/A N/A get_l2cap_options (sock, mtu)

        Gets L2CAP options for the specified L2CAP socket.
        Options are: omtu, imtu, flush_to, mode, fcs, max_tx, txwin_size.
         N/A N/A get_l2cap_options self N/A set_l2cap_options N/A N/A self options N/A N/A N/A set_l2cap_options (sock, options)

        Sets L2CAP options for the specified L2CAP socket.
        The option list must be in the same format supplied by
        get_l2cap_options().
         N/A N/A set_l2cap_options self options N/A set_l2cap_mtu N/A N/A self mtu N/A N/A N/A set_l2cap_mtu (sock, mtu)

        Adjusts the MTU for the specified L2CAP socket.  This method needs to be
        invoked on both sides of the connection for it to work!  The default mtu
        that all L2CAP connections start with is 672 bytes.

        mtu must be between 48 and 65535, inclusive.
         N/A N/A set_l2cap_mtu self mtu N/A N/A _s def %s (self, *args, **kwargs): 
    try: 
        return self._sock.%s (*args, **kwargs)
    except _bt.error, e:
        raise BluetoothError (str (e))
    %s.__doc__ = _bt.btsocket.%s.__doc__
 N/A _m N/A connect connect_ex close fileno getpeername getsockname gettimeout getsockopt listen makefile recv recvfrom sendall send sendto setblocking setsockopt settimeout shutdown setl2capsecurity N/A N/A N/A _s N/A _m _m _m _m N/A _m _s N/A advertise_service N/A N/A sock name service_id service_classes profiles provider description protocols N/A N/A N/A N/A N/A N/A N/A N/A service_id N/A N/A is_valid_uuid service_id N/A N/A N/A ValueError invalid UUID specified for service_id N/A uuid service_classes N/A N/A N/A N/A is_valid_uuid uuid N/A N/A N/A ValueError invalid UUID specified in service_classes N/A N/A uuid version profiles N/A N/A N/A N/A N/A is_valid_uuid uuid N/A version 0 N/A version 65535 N/A N/A N/A ValueError Invalid Profile Descriptor N/A uuid protocols N/A N/A N/A N/A is_valid_uuid uuid N/A N/A N/A ValueError invalid UUID specified in protocols N/A N/A N/A N/A N/A _bt sdp_advertise_service N/A sock _sock name service_id service_classes profiles provider description protocols N/A N/A N/A N/A _bt error N/A e N/A N/A N/A BluetoothError N/A str e N/A stop_advertising N/A N/A sock N/A N/A N/A N/A N/A N/A N/A _bt sdp_stop_advertising N/A sock _sock N/A N/A N/A N/A _bt error N/A e N/A N/A N/A BluetoothError N/A str e N/A find_service N/A N/A name uuid address N/A None None None N/A N/A N/A address N/A N/A devices N/A discover_devices N/A N/A devices N/A address N/A results N/A N/A N/A N/A uuid None N/A N/A is_valid_uuid uuid N/A N/A N/A ValueError invalid UUID N/A N/A N/A addr devices N/A N/A N/A N/A s N/A N/A _bt SDPSession N/A N/A N/A s connect addr N/A matches N/A N/A N/A uuid None N/A N/A matches N/A N/A s search uuid N/A N/A matches N/A N/A s browse N/A N/A N/A N/A _bt error N/A N/A N/A N/A name None N/A N/A matches N/A filter N/A N/A N/A s N/A N/A N/A N/A s get name name matches N/A m matches N/A N/A N/A m N/A host addr N/A N/A N/A results extend matches N/A N/A N/A N/A _bt error N/A e N/A N/A N/A BluetoothError N/A str e N/A results N/A _gethcisock N/A N/A device_id N/A -1 N/A N/A N/A N/A sock N/A N/A _bt hci_open_dev device_id N/A N/A N/A N/A N/A BluetoothError error accessing bluetooth device N/A sock N/A _get_acl_conn_handle N/A N/A hci_sock addr N/A N/A N/A hci_fd N/A N/A hci_sock fileno N/A reqstr N/A N/A struct pack 6sB17s N/A N/A _bt str2ba addr N/A _bt ACL_LINK N/A 17 N/A request N/A N/A array array c reqstr N/A N/A N/A N/A N/A fcntl ioctl hci_fd N/A _bt HCIGETCONNINFO request 1 N/A N/A N/A IOError N/A e N/A N/A N/A BluetoothError N/A There is no ACL connection to %s addr N/A handle N/A N/A N/A struct unpack 8xH14x N/A N/A request tostring N/A 0 N/A handle N/A _write_flush_timeout N/A N/A addr timeout N/A N/A N/A hci_sock N/A N/A _bt hci_open_dev N/A handle N/A _get_acl_conn_handle hci_sock addr N/A pkt N/A N/A struct pack HH handle N/A N/A _bt htobs timeout N/A response N/A N/A _bt hci_send_req hci_sock N/A _bt OGF_HOST_CTL 40 N/A _bt EVT_CMD_COMPLETE 3 pkt N/A status N/A N/A N/A struct unpack B N/A response N/A 0 N/A 0 N/A rhandle N/A N/A N/A struct unpack H N/A response N/A 1 3 N/A 0 N/A N/A rhandle handle N/A N/A status 0 N/A _read_flush_timeout N/A N/A addr N/A N/A N/A hci_sock N/A N/A _bt hci_open_dev N/A handle N/A _get_acl_conn_handle hci_sock addr N/A pkt N/A N/A struct pack H handle N/A response N/A N/A _bt hci_send_req hci_sock N/A _bt OGF_HOST_CTL 39 N/A _bt EVT_CMD_COMPLETE 5 pkt N/A status N/A N/A N/A struct unpack B N/A response N/A 0 N/A 0 N/A rhandle N/A N/A N/A struct unpack H N/A response N/A 1 3 N/A 0 N/A N/A rhandle handle N/A N/A status 0 N/A fto N/A N/A N/A struct unpack H N/A response N/A 3 5 N/A 0 N/A fto N/A DeviceDiscoverer N/A N/A N/A 
    Skeleton class for finer control of the device discovery process.

    To implement asynchronous device discovery (e.g. if you want to do
    something *as soon as* a device is discovered), subclass
    DeviceDiscoverer and override device_discovered () and
    inquiry_complete ()
     __init__ N/A N/A self device_id N/A -1 N/A N/A 
        __init__ (device_id=-1)

        device_id - The ID of the Bluetooth adapter that will be used
                    for discovery.
         N/A N/A self sock None N/A N/A self is_inquiring False N/A N/A self lookup_names False N/A N/A self device_id device_id N/A N/A self names_to_find N/A N/A N/A self names_found N/A N/A find_devices N/A N/A self lookup_names duration flush_cache N/A True 8 True N/A N/A 
        find_devices (lookup_names=True, service_name=None, 
                       duration=8, flush_cache=True)

        Call this method to initiate the device discovery process

        lookup_names - set to True if you want to lookup the user-friendly 
                       names for each device found.

        service_name - set to the name of a service you're looking for.
                       only devices with a service of this name will be 
                       returned in device_discovered () NOT YET IMPLEMENTED


        ADVANCED PARAMETERS:  (don't change these unless you know what 
                            you're doing)

        duration - the number of 1.2 second units to spend searching for
                   bluetooth devices.  If lookup_names is True, then the 
                   inquiry process can take a lot longer.

        flush_cache - return devices discovered in previous inquiries
         N/A N/A self is_inquiring N/A N/A N/A BluetoothError Already inquiring! N/A N/A self lookup_names lookup_names N/A N/A self sock N/A _gethcisock N/A self device_id N/A flt N/A N/A _bt hci_filter_new N/A N/A N/A _bt hci_filter_all_events flt N/A N/A N/A _bt hci_filter_set_ptype flt N/A _bt HCI_EVENT_PKT N/A N/A N/A N/A N/A N/A self sock setsockopt N/A _bt SOL_HCI N/A _bt HCI_FILTER flt N/A N/A N/A N/A N/A BluetoothError problem with local bluetooth device. N/A max_responses 255 N/A cmd_pkt N/A N/A struct pack BBBBB 51 139 158 duration max_responses N/A N/A N/A self pre_inquiry N/A N/A N/A N/A N/A _bt hci_send_cmd N/A self sock N/A _bt OGF_LINK_CTL N/A _bt OCF_INQUIRY cmd_pkt N/A N/A N/A N/A N/A BluetoothError problem with local bluetooth device. N/A N/A self is_inquiring True N/A N/A self names_to_find N/A N/A N/A self names_found N/A N/A cancel_inquiry N/A N/A self N/A N/A N/A 
        Call this method to cancel an inquiry in process.  inquiry_complete 
        will still be called.
         N/A N/A self names_to_find N/A N/A N/A self is_inquiring N/A N/A N/A N/A N/A N/A _bt hci_send_cmd N/A self sock N/A _bt OGF_LINK_CTL N/A _bt OCF_INQUIRY_CANCEL N/A N/A N/A N/A self sock close N/A N/A self sock None N/A N/A N/A N/A N/A BluetoothError error canceling inquiry N/A N/A self is_inquiring False N/A process_inquiry N/A N/A self N/A N/A N/A 
        Repeatedly calls process_event () until the device inquiry has 
        completed.
         N/A N/A N/A self is_inquiring N/A N/A len N/A self names_to_find 0 N/A N/A N/A N/A self process_event N/A process_event N/A N/A self N/A N/A N/A 
        Waits for one event to happen, and proceses it.  The event will be
        either a device discovery, or an inquiry completion.
         N/A N/A N/A self _process_hci_event N/A _process_hci_event N/A N/A self N/A N/A N/A socket N/A N/A N/A self sock None N/A N/A N/A pkt N/A N/A N/A self sock recv 255 N/A N/A ptype event plen N/A N/A struct unpack BBB N/A pkt N/A 3 N/A pkt N/A pkt N/A 3 N/A N/A event N/A _bt EVT_INQUIRY_RESULT N/A N/A nrsp N/A N/A N/A struct unpack B N/A pkt N/A 0 N/A 0 N/A i N/A range nrsp N/A N/A addr N/A N/A _bt ba2str N/A pkt N/A N/A 1 N/A 6 i N/A N/A 1 N/A 6 i 6 N/A psrm N/A pkt N/A N/A N/A 1 N/A 6 nrsp i N/A pspm N/A pkt N/A N/A N/A 1 N/A 7 nrsp i N/A devclass_raw N/A N/A struct unpack BBB N/A pkt N/A N/A N/A 1 N/A 9 nrsp N/A 3 i N/A N/A N/A 1 N/A 9 nrsp N/A 3 i 3 N/A devclass N/A N/A N/A N/A devclass_raw N/A 2 16 N/A N/A devclass_raw N/A 1 8 N/A devclass_raw N/A 0 N/A clockoff N/A pkt N/A N/A N/A 1 N/A 12 nrsp N/A 2 i N/A N/A N/A 1 N/A 12 nrsp N/A 2 i 2 N/A N/A N/A self _device_discovered addr devclass psrm pspm clockoff N/A N/A N/A event N/A _bt EVT_INQUIRY_RESULT_WITH_RSSI N/A N/A nrsp N/A N/A N/A struct unpack B N/A pkt N/A 0 N/A 0 N/A i N/A range nrsp N/A N/A addr N/A N/A _bt ba2str N/A pkt N/A N/A 1 N/A 6 i N/A N/A 1 N/A 6 i 6 N/A psrm N/A pkt N/A N/A N/A 1 N/A 6 nrsp i N/A pspm N/A pkt N/A N/A N/A 1 N/A 7 nrsp i N/A devclass_raw N/A N/A struct unpack BBB N/A pkt N/A N/A N/A 1 N/A 8 nrsp N/A 3 i N/A N/A N/A 1 N/A 8 nrsp N/A 3 i 3 N/A devclass N/A N/A N/A N/A devclass_raw N/A 2 16 N/A N/A devclass_raw N/A 1 8 N/A devclass_raw N/A 0 N/A clockoff N/A pkt N/A N/A N/A 1 N/A 11 nrsp N/A 2 i N/A N/A N/A 1 N/A 11 nrsp N/A 2 i 2 N/A rssi N/A N/A N/A struct unpack b N/A pkt N/A N/A N/A 1 N/A 13 nrsp i N/A 0 N/A N/A N/A self _device_discovered addr devclass psrm pspm clockoff N/A N/A N/A event N/A _bt EVT_INQUIRY_COMPLETE N/A N/A N/A self is_inquiring False N/A N/A N/A len N/A self names_to_find 0 N/A N/A N/A N/A N/A self sock close N/A N/A N/A self inquiry_complete N/A N/A N/A N/A self _send_next_name_req N/A N/A N/A event N/A _bt EVT_CMD_STATUS N/A N/A N/A status ncmd opcode N/A N/A struct unpack BBH N/A pkt N/A 4 N/A N/A status 0 N/A N/A N/A self is_inquiring False N/A N/A N/A N/A self sock close N/A N/A self names_to_find N/A N/A N/A N/A self inquiry_complete N/A N/A N/A event N/A _bt EVT_REMOTE_NAME_REQ_COMPLETE N/A N/A status N/A N/A N/A struct unpack B N/A pkt N/A 0 N/A 0 N/A addr N/A N/A _bt ba2str N/A pkt N/A 1 7 N/A N/A status 0 N/A N/A N/A N/A name N/A N/A N/A N/A pkt N/A 7 split N/A 0 N/A N/A N/A IndexError N/A N/A name N/A N/A addr N/A self names_to_find N/A N/A device_class N/A N/A N/A self names_to_find N/A addr N/A 0 N/A N/A N/A self device_discovered addr device_class name N/A N/A N/A self names_to_find N/A addr N/A N/A N/A self names_found N/A addr N/A device_class name N/A N/A N/A N/A N/A addr N/A self names_to_find N/A N/A N/A N/A self names_to_find N/A addr N/A N/A N/A len N/A self names_to_find 0 N/A N/A N/A self is_inquiring False N/A N/A N/A N/A self sock close N/A N/A N/A self inquiry_complete N/A N/A N/A N/A self _send_next_name_req N/A N/A N/A _device_discovered N/A N/A self address device_class psrm pspm clockoff N/A N/A N/A N/A self lookup_names N/A N/A N/A N/A address N/A self names_found N/A address N/A self names_to_find N/A N/A N/A N/A self names_to_find N/A address N/A device_class psrm pspm clockoff N/A N/A N/A N/A self device_discovered address device_class None N/A _send_next_name_req N/A N/A self N/A N/A N/A N/A N/A len N/A self names_to_find 0 N/A address N/A N/A N/A N/A self names_to_find keys N/A 0 N/A N/A device_class psrm pspm clockoff N/A N/A self names_to_find N/A address N/A bdaddr N/A N/A _bt str2ba address N/A cmd_pkt N/A %s%s%s N/A bdaddr psrm clockoff N/A N/A N/A N/A N/A _bt hci_send_cmd N/A self sock N/A _bt OGF_LINK_CTL N/A _bt OCF_REMOTE_NAME_REQ cmd_pkt N/A N/A N/A Exception N/A e N/A N/A N/A BluetoothError N/A error request name of %s - %s N/A address N/A str e N/A fileno N/A N/A self N/A N/A N/A N/A N/A self sock N/A N/A None N/A N/A N/A N/A self sock fileno N/A pre_inquiry N/A N/A self N/A N/A N/A 
        Called just after find_devices is invoked, but just before the
        inquiry is started.

        This method exists to be overriden
         N/A device_discovered N/A N/A self address device_class name N/A N/A N/A 
        Called when a bluetooth device is discovered.

        address is the bluetooth address of the device

        device_class is the Class of Device, as specified in [1]
                     passed in as a 3-byte string

        name is the user-friendly name of the device if lookup_names was
        set when the inquiry was started.  otherwise None
        
        This method exists to be overriden.

        [1] https://www.bluetooth.org/foundry/assignnumb/document/baseband
         N/A name N/A N/A N/A found: %s - %s (class 0x%X) N/A address name device_class N/A N/A N/A found: %s (class 0x%X) N/A address device_class N/A inquiry_complete N/A N/A self N/A N/A N/A 
        Called when an inquiry started by find_devices has completed.
         N/A inquiry complete N/A N/A