ESenseManager class

Constructors

ESenseManager(String deviceName)
Constructs an eSense manager for a device with name deviceName.

Properties

connected bool
Is this manager connected to an eSense device?
getter/setter pair
connectionEvents Stream<ConnectionEvent>
Get a stream of ConnectionEvents.
no setter
deviceName String
The name of the connected eSense device
getter/setter pair
eSenseEvents Stream<ESenseEvent>
Get the stream of events from the eSense device, once connected.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
samplingRate int
The sampling rate of the eSense sensors (default sampling rate is 10 Hz.)
no setter
sensorEvents Stream<SensorEvent>
Get the stream of sensor events.
no setter

Methods

connect() Future<bool>
Initiates a connection scanning procedure.
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAdvertisementAndConnectionInterval(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) Default sampling rate is 10 Hz.
setSensorConfig(ESenseConfig config) Future<bool>
Requests a change of the sensor configuration on the connected device.
toString() String
A string representation of this object.
inherited

Operators

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