setSensorConfig method

Future<bool> setSensorConfig(
  1. ESenseConfig config
)

Requests a change of the sensor configuration on the connected device.

Returns true if the request was successfully made, false otherwise.

Implementation

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