setChimeType method
Implementation
Future<Map<String, dynamic>> setChimeType(
String deviceSerial,
int type, // 1-mechanical, 2-electronic, 3-none
int duration, {
int? channelNo,
}) async {
final body = <String, dynamic>{
'deviceSerial': deviceSerial,
'type': type,
'duration': duration,
};
if (channelNo != null) body['channelNo'] = channelNo;
return _client.post('/api/lapp/device/chime/set', body);
}