ProvisionManager class

Constructors

ProvisionManager()
factory

Properties

disconnectState StreamController<bool>
final
getSensorStateLoop bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectDevice(ScanResult scanResult, {BleConnectCallback? callback}) → void
Initiates a connection to the specified Bluetooth device.
disconnect() → void
Disconnects from the currently connected device.
getSensorInfoFromDevice() Stream<SensorInstallInfoEntity>
Retrieves the installation information for the sensor.
getSensorStateFromDevice({bool loop = false}) Stream<SensorConfigStateEntity>
Retrieves the current state of the sensor.
getWifiListFromDevice(WiFiListCallback callback) → void
Initiates a scan for available Wi-Fi networks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scanPSDevices({String? prefix, int duration = 5000, bool exactMatch = false, ScanStateCallback? scanState, ScanCallback? onResult, FailureCallback? onFailure}) → void
Starts scanning for Bluetooth devices.
sendSensorConfigFinish(SensorConfigFinishCallback callback) → void
Sends a signal to indicate that the sensor configuration is complete.
sendWiFiConfigToDevice(String orgId, String certPem, String publicKey, String privateKey, String url, String? ssid, String password, {int target = 0, dynamic onWriteFailure(Exception)?}) Stream<SensorConfigStateEntity>
Sends configuration data for the sensor.
splitByteArray(List<int> byteArray, int chunkSize) List<List<int>>
stopScan() → void
Stops the ongoing Bluetooth device scan.
toString() String
A string representation of this object.
inherited
writeData(String content, {dynamic onWriteFailure(Exception)?}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited