setLedConfig method

Future<void> setLedConfig(
  1. String identifier,
  2. LedConfig config
)

Set LedConfig to enable or disable blinking LEDs (Verity Sense 2.2.1+).

  • Parameters:
    • identifier: polar device id or UUID
    • ledConfig: to enable or disable LEDs blinking
  • Returns: Completable stream
    • success: when enable or disable sent to device
    • onError: see PolarErrors for possible errors invoked

Implementation

Future<void> setLedConfig(String identifier, LedConfig config) {
  return _channel
      .invokeMethod('setLedConfig', [identifier, jsonEncode(config)]);
}