setConfiguration method

GemError setConfiguration({
  1. DataType type = DataType.position,
  2. required PositionSensorConfiguration config,
})

Update the configuration for the specified type.

Only relevant for DataType.position data type for now.

Parameters

  • IN type The data type for which the configuration will be set.
  • IN config The configuration to be applied.

Returns

Throws

  • An exception if it fails

Implementation

GemError setConfiguration({
  final DataType type = DataType.position,
  required final PositionSensorConfiguration config,
}) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'DataSourceContainer',
    'setConfiguration',
    args: <String, Object>{'type': type.id, 'config': config.toJson()},
  );

  return GemErrorExtension.fromCode(resultString['result']);
}