BluetoothConnector class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkBluetooth(
) → Future< bool> - Checks the Bluetooth status and returns true if Bluetooth is turned on
-
connectionStatus(
) → Stream - Stream which listens to the connection status between client and server
-
getDevice(
String address) → Future< BtDevice?> - Gets a Particular Paired from the list of paired devices from its Device(Mac) address
-
getDevices(
) → Future< List< BtDevice> > - Gets list of all the Paired Bluetooth Devices
-
initBlutoothConnection(
String uuid) → Future< bool> - Initiates the Bluetooth Connection by setting up a UUID
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
receiveMessages(
) → Stream - Stream which listens messages send by client or server
-
sendMessage(
String? message, {bool? sendByteByByte}) → Future< bool> - Sends message from client to server and vice versa, byte by byte or as a data stream
-
startClient(
int? position, [bool isSecure = false]) → Future< bool> - Starts Bluetooth Client, now the device works as a bluetooth client
-
startServer(
) → Future< bool> - Starts Bluetooth Server, now the device works as a bluetooth server
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
platformVersion
→ Future<
String?> -
no setter