getInfraredStatus method

Future<Map<String, dynamic>> getInfraredStatus(
  1. String deviceSerial, {
  2. int? channelNo,
})

Implementation

Future<Map<String, dynamic>> getInfraredStatus(
  String deviceSerial, {
  int? channelNo,
}) async {
  final body = <String, dynamic>{'deviceSerial': deviceSerial};
  if (channelNo != null) body['channelNo'] = channelNo;
  return _client.post('/api/lapp/device/infrared/switch/get', body);
}