getConfig method

Future<MagicConfigResponse> getConfig(
  1. String address,
  2. int io,
  3. int index,
  4. int correlation,
)

Get the config value of the device at address

Implementation

Future<MagicConfigResponse> getConfig(
  final String address,
  final int io,
  final int index,
  final int correlation,
) async {
  _checkValidAddress(address, shouldCheckGroupFormat: false);
  return MagicConfigResponse.fromJson(await _sendRequest(
    'get_config',
    params: <String, dynamic>{
      'address': address,
      'io': io,
      'index': index,
      'correlation': correlation,
    },
  ));
}