setAlarmSoundEnabled method

Future<Map<String, dynamic>> setAlarmSoundEnabled(
  1. String deviceSerial,
  2. String type
)

Implementation

Future<Map<String, dynamic>> setAlarmSoundEnabled(
  String deviceSerial,
  String type, // "0"-Short, "1"-Long, "2"-Mute
) async {
  return _client.post('/api/v3/device/alarmSound/enabled/set?type=$type', {
    'deviceSerial': deviceSerial,
  });
}