BlueManage class

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

CallAlarm(String deviceId) Future<bool>
checkAlarm(String deviceId) Future<bool>
connect(BlueDevice blueDevice) Future<bool>
disConnect(String deviceId) Future
disWarning(String deviceId) Future<bool>
getConnectAlarm(String deviceId) → dynamic
getDeviceConfiguration(String deviceId) Future<List<int>>
getDeviceVersion(String deviceId) Future<List<int>>
getElectricity(String deviceId) Future<List<int>>
initBlue() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
powerOff(String deviceId) Future<bool>
setAlarmVoice(String deviceId, bool open) Future<bool>
setOnAlarmChange(String deviceId, void onData(int event)) → dynamic
setOnElectricityChange(String deviceId, void onData(List<int> event)) → dynamic
setWarningSate(String deviceId, bool result) Future<bool>
startScan(dynamic function(int code)) → dynamic
stopScan() → dynamic
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

conDevices List<BlueDevice>
read / write
instance BlueManage
read-only
scanDevices List<BlueDevice>
read / write

Constants

APP_UUID_CHARACTER → const String
"0000ffe2-0000-1000-8000-00805f9b34fb"
APP_UUID_SERVICE → const String
"0000ffe0-0000-1000-8000-00805f9b34fb"
BATTERY0 → const int
0
BATTERY1 → const int
1
BATTERY2 → const int
2
BATTERY3 → const int
3
DEVICE_UUID_CHARACTER → const String
"0000ffe1-0000-1000-8000-00805f9b34fb"
DIS_BINDING → const List<int>
[33, 32, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]
DIS_WARNING → const List<int>
[33, 32, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]
ENCRYPT_UUID_CHARACTER → const String
"0000ffe4-0000-1000-8000-00805f9b34fb"
LONG → const int
17
POWER_OFF → const List<int>
[33, 32, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]
PULLIN → const int
32
PULLOUT → const int
33
READ_DEVICE_CONFIGURATION_CHARACTER → const String
"0000ffe3-0000-1000-8000-00805f9b34fb"
READ_DEVICE_CONFIGURATION_UUID_SERVICE → const String
"0000180a-0000-1000-8000-00805f9b34fb"
READ_DEVICE_UUID_CHARACTER → const String
"0000180f-0000-1000-8000-00805f9b34fb"
READ_DEVICE_UUID_SERVICE → const String
"0000180f-0000-1000-8000-00805f9b34fb"
READ_DEVICE_VERSION_CHARACTER → const String
"00002a24-0000-1000-8000-00805f9b34fb"
SEARCH_DEVICE → const List<int>
[33, 32, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]
SINGLE → const int
1
TWO → const int
2
VOICE_OFF → const List<int>
[33, 67, 7, 2, 50, 50, 3, 8, 50, 25, 0, 1, 50, 25, 5, 9, 50, 8, 0, -2]
VOICE_ON → const List<int>
[33, 67, 7, 2, 50, 50, 3, 8, 50, 25, 0, 1, 50, 25, 5, 9, 50, 8, 25, -2]
WARING_FAILED → const List<int>
[33, 32, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]
WARNING_SUCCESS → const List<int>
[33, 20, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2]