ESenseManager class

Constructors

ESenseManager()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

connected ↔ bool
Is this manager connected to an eSense device?
read / write
connectionEvents → Stream<ConnectionEvent>
Get a stream of ConnectionEvents. [...]
read-only
eSenseDeviceName ↔ String
The name of the connected eSense device
read / write
eSenseEvents → Stream<ESenseEvent>
Get the stream of events from the eSense device, once connected. [...]
read-only
samplingRate ↔ int
The sampling rate of the eSense sensors (default sampling rate is 10 Hz.)
read / write
sensorEvents → Stream<SensorEvent>
Get the stream of sensor events. [...]
read-only

Static Methods

connect(String name) → Future<bool>
disconnect() → Future<bool>
Disconnects the device (if connected). [...]
getAccelerometerOffset() → Future<bool>
Requests a read of the factory accelerometer offset values of the connected device. [...]
getAdvertisementAndConnectionInterval() → Future<bool>
Requests a read of the parameter values of advertisement and connection interval of the connected device. [...]
getBatteryVoltage() → Future<bool>
Requests a read of the battery voltage of the connected device. [...]
getDeviceName() → Future<bool>
Requests a read of the name of the connected device. [...]
getSensorConfig() → Future<bool>
Requests a read of the sensor configuration of the connected device. Right now not implemented on the Flutter side, i.e. the ESenseConfig class is empty. [...]
isConnected() → Future<bool>
Checks the BTLE connection if the device is connected or not. [...]
setAdvertisementAndConnectiontInterval(int advMinInterval, int advMaxInterval, int connMinInterval, int connMaxInterval) → Future<bool>
Requests a change of the advertisement and connection intervals on the connected device. [...]
setDeviceName(String deviceName) → Future<bool>
Requests a change of the name of the connected device. [...]
setSamplingRate(int rate) → Future<bool>
Set the sampling rate for sensor sampling in Hz (min: 1 - max: 100) [...]
setSensorConfig(ESenseConfig config) → Future<bool>
Requests a change of the sensor configuration on the connected device. [...]

Constants

ESenseConnectionEventChannelName → const String
'esense.io/esense_connection'
ESenseEventChannelName → const String
'esense.io/esense_events'
ESenseManagerMethodChannelName → const String
'esense.io/esense_manager'
ESenseSensorEventChannelName → const String
'esense.io/esense_sensor'