BrilliantDevice class
Constructors
- BrilliantDevice({required BrilliantConnectionState state, required BluetoothDevice device, int? maxStringLength, int? maxDataLength})
Properties
-
connectionState
→ Stream<
BrilliantDevice> -
no setter
-
dataResponse
→ Stream<
List< int> > -
no setter
- device ↔ BluetoothDevice
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDataLength ↔ int?
-
getter/setter pair
- maxStringLength ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ BrilliantConnectionState
-
getter/setter pair
-
stringResponse
→ Stream<
String> -
no setter
- uuid → String
-
no setter
Methods
-
clearDisplay(
) → Future< void> -
disconnect(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendBreakSignal(
) → Future< void> -
sendData(
List< int> data) → Future<void> -
sendDataRaw(
Uint8List data) → Future< void> - Same as sendData but user includes the 0x01 header byte to avoid extra memory allocation
-
sendMessage(
TxMsg message) → Future< void> -
Sends a typed message as a series of messages to Frame as chunks marked by
0x01 (dataFlag), messageFlag & 0xFF, {first packet: length(Uint16)}, payload(chunked)
until all data in the payload is sent. Payload data cannot exceed 65535 bytes in length. Can be received by a corresponding Lua function on Frame. -
sendResetSignal(
) → Future< void> -
sendString(
String string, {bool awaitResponse = true, bool log = true}) → Future< String?> -
toString(
) → String -
A string representation of this object.
inherited
-
uploadScript(
String fileName, String filePath) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited