BleDistributeWifiController class

蓝牙配网 在连接使用蓝牙配网之前,应该准备好WIFI信息 返回配置过程中的各种状态回调

Mixed-in types

Properties

currentRetry int
getter/setter pair
currentStep int
getter/setter pair
deviceInfo Map<String, dynamic>
no setter
errorCode int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mac String
getter/setter pair
password String
getter/setter pair
retryCounts Map<int, int>
每个步骤的重试次数
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldTerminate bool
getter/setter pair
ssid String
getter/setter pair

Methods

addStateChangeListener(void listener(BleDistributeWifiStatus)) → void
inherited
clearStateChangeListener() → void
inherited
dispose() → void
销毁 在整个流程没有完成时,调用此方法,将结束将要执行的方法
distributeWifi(String mac, String ssid, String password) → void
开启 WIFI 配网 mac 设备 mac 地址 ssid WIFI名称 password WIFI密码 1.蓝牙链接设备并建立监听 2.向设备 写入 WIFI信息 3.等待设备配网成功通过蓝牙返回设备信息 4.配网成功,通过 Controller 获取设备信息
execute() Future<void>
重试尝试 每一步在失败第一次时将重新尝试.当达到最多尝试次数时,重新开始
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyStateChangeListeners(BleDistributeWifiStatus state) → void
inherited
removeStateChangeListener(void listener(BleDistributeWifiStatus)) → void
inherited
restart({int step = 0}) → void
toString() String
A string representation of this object.
inherited

Operators

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