HubBleManager class
- Inheritance
-
- Object
- StateNotifier<
BleConnectionStatus> - BleManager
- HubBleManager
Constructors
- HubBleManager(String hubSerialNumber, FirmwareAutoUpdateNotifier _firmwareAutoUpdateNotifier)
Properties
- ble → FlutterReactiveBle
-
no setterinherited
- connectedDeviceId → String?
-
no setterinherited
- debugState → BleConnectionStatus
-
A development-only way to access state outside of StateNotifier.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
If a listener has been added using addListener and hasn't been removed yet.
no setterinherited
- hubSerialNumber → String
-
final
- isConnected → bool
-
no setterinherited
- lastConnectionState → ConnectionStateUpdate?
-
no setterinherited
- matchingDevice → DiscoveredDevice?
-
no setterinherited
- mounted → bool
-
Whether dispose was called or not.
no setterinherited
- onError ↔ ErrorListener?
-
A callback for error reporting if one of the listeners added with addListener throws.
getter/setter pairinherited
-
requiredPermissions
→ List<
Permission> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ BleConnectionStatus
-
The current "state" of this StateNotifier.
getter/setter pairinherited
-
stream
→ Stream<
BleConnectionStatus> -
A broadcast stream representation of a StateNotifier.
no setterinherited
Methods
-
addListener(
Listener< BleConnectionStatus> listener, {bool fireImmediately = true}) → RemoveListener -
Subscribes to this object.
inherited
-
bulkEraseSingle(
{required TransferType txType, required int txSubType, required String destination}) → Future< bool> -
bulkReset(
{TransferType? txType}) → Future< bool> -
cancelFirmwareUpdate(
) → void -
connectToDevice(
{bool autoReconnect = true, int scanTimeoutSecs = 10, bool autoSubscribeEvents = true}) → Future< void> -
override
-
disconnect(
) → Future< void> -
inherited
-
dispose(
) → void -
Frees all the resources associated with this object.
inherited
-
enumerateAll(
) → Future< HubEnumerationResult?> -
firmwareCommit(
{required TransferType txType, String? destination}) → Future< bool> -
firmwareReboot(
{required TransferType txType, String? destination}) → Future< bool> -
firmwareTestSwap(
{required TransferType txType, bool autoReboot = false, String? destination}) → Future< bool> -
getBulkVersion(
{required TransferType txType, String? destination}) → Future< String?> -
getNextCommandId(
) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnected(
String deviceId) → Future< void> -
override
-
onConnectionClosed(
) → Future< void> -
override
-
paramGetByCloudId(
{required CommandDataSource dataSource, required List< int> cloudIds, String? dataSourceUid}) → Future<Object?> -
paramGetByRegMap(
{required CommandDataSource dataSource, required int registerMapUid, String? dataSourceUid}) → Future< Object?> -
paramGetForPath(
{String? pathToRead}) → Future< Object?> -
paramSetSingle(
{required CommandDataSource dataSource, required int cloudId, required Object value, String? dataSourceUid}) → Future< bool> -
runFirmwareUpdateFullAuto(
{required TransferType txType, required List< int> payload, String? destination, String? expectedVersion, int maxRetriesPerStep = _maxDfuRetriesPerStep}) → Future<bool> -
sendCommand<
T> (BleCommandTx< T> commandTx, {int? commandId}) → Future<T?> -
setupBulkTransferMulti(
{required TransferType txType, required int txSubType, required String destination, required int totalSizeBytes, required bool toHub, required int payloadCrc32}) → Future< BulkTransferSetupResult?> -
setupBulkTransferSingle(
{required TransferType txType, required int txSubType, required String destination, required int totalSizeBytes, required bool toHub}) → Future< BulkTransferSetupResult?> -
setupFirmwareUpdate(
{required TransferType txType, required int totalSizeBytes, int? totalCrc32, String? destination}) → Future< bool> -
startReplySubscription(
) → Future< void> -
startScan(
{bool filterByService = true, int scanTimeoutSecs = 30}) → Future< void> -
inherited
-
stopReplySubscription(
) → Future< void> -
stopScan(
) → Future< void> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transferBulkFromHub(
{required TransferType txType, required int txSubType, required String destination, int maxChunkErrors = 50}) → Future< Uint8List?> -
transferBulkToHubMulti(
{required TransferType txType, required int txSubType, required String destination, required List< int> payload, bool resetBeforeSetup = true, int? chunkSize, int maxConsecutiveFailures = 10, int maxPacketsInFlight = 1, bool shouldCancel()?}) → Future<bool> -
transferBulkToHubSingle(
{required TransferType txType, required int txSubType, required String destination, required List< int> payload, bool resetBeforeSetup = true, int? chunkSize, int maxConsecutiveFailures = 10, int maxPacketsInFlight = 5, bool shouldCancel()?}) → Future<bool> -
updateShouldNotify(
BleConnectionStatus old, BleConnectionStatus current) → bool -
Whether to notify listeners or not when state changes
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited