setDetectionArea method

Future<Map<String, dynamic>> setDetectionArea(
  1. String deviceSerial,
  2. String channelNo,
  3. String area
)

Implementation

Future<Map<String, dynamic>> setDetectionArea(
  String deviceSerial,
  String channelNo, // API doc shows string
  String area, // e.g., "8,8,8"
) async {
  return _client.post('/api/v3/device/motion/detect/set?area=$area', {
    'deviceSerial': deviceSerial,
    'channelNo': channelNo,
    // 'area': area, // Query param
  });
}