ESenseDeviceManager class
A DeviceManager
for the eSense device.
- Inheritance
-
- Object
- DeviceDataCollector<
DeviceRegistration, ESenseDevice> - DeviceManager<
DeviceRegistration, ESenseDevice> - HardwareDeviceManager<
DeviceRegistration, ESenseDevice> - BTLEDeviceManager<
DeviceRegistration, ESenseDevice> - ESenseDeviceManager
Constructors
Properties
- batteryLevel → int?
-
A estimate of the battery level of the eSense device.
no setteroverride
- btleAddress ↔ String
-
The Bluetooth address of this device in the form
00:04:79:00:0F:4D
. Returns empty string if unknown.getter/setter pairinherited - btleName ↔ String
-
The Bluetooth name of this device.
Returns empty string if unknown.
getter/setter pairoverride
- deviceDescriptor ↔ ESenseDevice?
-
The description for this device.
getter/setter pairinherited
- deviceRegistration ↔ DeviceRegistration?
-
The registration for this device.
getter/setter pairinherited
-
executors
→ Set<
Executor> -
The set of executors that use this device manager.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Get a unique id for this device.
no setteroverride
- isConnected → bool
-
Has this device manager been connected?
no setterinherited
- isInitialized → bool
-
Has this device manager been initialized?
no setterinherited
- manager ↔ ESenseManager?
-
A handle to the
ESenseManager
plugin.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ DeviceStatus
-
The runtime status of this device.
getter/setter pairinherited
-
statusEvents
→ Stream<
DeviceStatus> -
The stream of status events for this device.
no setterinherited
-
supportedDataTypes
→ Set<
String> -
The set of data types defining which data can be collected on this device.
no setterinherited
- type ↔ String?
-
The type of this device
getter/setter pairinherited
Methods
-
canConnect(
) → Future< bool> -
Determines whether a connection can be made at this point in time to
the device.
override
-
connect(
) → Future< DeviceStatus> -
Ask this
DeviceManager
to start connecting to the device. Returns theDeviceStatus
of the device.inherited -
disconnect(
) → Future< bool> -
Ask this
DeviceManager
to disconnect from the device.inherited -
initialize(
ESenseDevice descriptor) → void -
Initialize the device manager by specifying its device
descriptor
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnect(
) → Future< DeviceStatus> -
Callback on connect. Returns the
DeviceStatus
of the device.override -
onDisconnect(
) → Future< bool> -
Callback on disconnect.
override
-
onInitialize(
DeviceDescriptor descriptor) → void -
Callback on initialize.
inherited
-
pause(
) → void -
Pause sampling of the measures using this device.
inherited
-
restart(
) → void -
Restart sampling of the measures using this device.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited