getSensorConfig method

Future<bool> getSensorConfig()

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.

The event SensorConfigRead is fired when the offset has been read. Returns true if the request was successfully made, false otherwise.

Implementation

Future<bool> getSensorConfig() async {
  if (!connected) {
    throw ESenseException('Not connected to any eSense device.');
  }
  return await _eSenseManagerMethodChannel
          .invokeMethod<bool?>('getSensorConfig') ??
      false;
}