ESenseManager class




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


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


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

Static Properties

connected ↔ bool
Is this manager connected to an eSense device?
read / write
connectionEvents → Stream<ConnectionEvent>
Get a stream of ConnectionEvents. [...]
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. [...]
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. [...]

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. [...]


ESenseConnectionEventChannelName → const String
ESenseEventChannelName → const String
ESenseManagerMethodChannelName → const String
ESenseSensorEventChannelName → const String