QBluetoothSocket¶
- PyQt5.QtBluetooth.QBluetoothSocket
Inherits from QIODevice.
Description¶
TODO
Enums¶
- SocketError
TODO
Member
Value
Description
HostNotFoundError TODO
TODO
NetworkError TODO
TODO
NoSocketError TODO
TODO
OperationError TODO
TODO
RemoteHostClosedError TODO
TODO
ServiceNotFoundError TODO
TODO
UnknownSocketError TODO
TODO
UnsupportedProtocolError TODO
TODO
- SocketState
TODO
Member
Value
Description
BoundState TODO
TODO
ClosingState TODO
TODO
ConnectedState TODO
TODO
ConnectingState TODO
TODO
ListeningState TODO
TODO
ServiceLookupState TODO
TODO
UnconnectedState TODO
TODO
Methods¶
- __init__(parent: QObject = None)
TODO
- abort()
TODO
- bytesAvailable() → int
TODO
- bytesToWrite() → int
TODO
- canReadLine() → bool
TODO
- close()
TODO
- connectToService(QBluetoothServiceInfo, mode: Union[OpenMode, OpenModeFlag] = ReadWrite)
TODO
- connectToService(QBluetoothAddress, QBluetoothUuid, mode: Union[OpenMode, OpenModeFlag] = ReadWrite)
TODO
- connectToService(QBluetoothAddress, int, mode: Union[OpenMode, OpenModeFlag] = ReadWrite)
TODO
- disconnectFromService()
TODO
- doDeviceDiscovery(QBluetoothServiceInfo, Union[OpenMode, OpenModeFlag])
TODO
- error() → SocketError
TODO
- errorString() → str
TODO
- isSequential() → bool
TODO
- localAddress() → QBluetoothAddress
TODO
- localName() → str
TODO
- localPort() → int
TODO
- peerAddress() → QBluetoothAddress
TODO
- peerName() → str
TODO
- peerPort() → int
TODO
- preferredSecurityFlags() → SecurityFlags
TODO
- readData(int) → bytes
TODO
- setPreferredSecurityFlags(Union[SecurityFlags, Security])
TODO
- setSocketDescriptor(int, Protocol, state: SocketState = ConnectedState, mode: Union[OpenMode, OpenModeFlag] = ReadWrite) → bool
TODO
- setSocketError(SocketError)
TODO
- setSocketState(SocketState)
TODO
- socketDescriptor() → int
TODO
- socketType() → Protocol
TODO
- state() → SocketState
TODO
- writeData(bytes) → int
TODO
Signals¶
- connected()
TODO
- disconnected()
TODO
- error()
TODO
- error(SocketError)
TODO
- stateChanged(SocketState)
TODO