setConfiguration method
- DataType type = DataType.position,
- 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
- GemError.success on success.
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']);
}