getDeviceCapability method
Implementation
Future<Map<String, dynamic>> getDeviceCapability(
String deviceSerial, {
String? channelNo, // API doc shows String, but usually int
}) async {
final body = <String, dynamic>{'deviceSerial': deviceSerial};
if (channelNo != null) body['channelNo'] = channelNo;
return _client.post('/api/lapp/device/capacity', body);
}