countDevicesByDeviceProfileIdAndEmptyOtaPackage method

Future<int> countDevicesByDeviceProfileIdAndEmptyOtaPackage(
  1. OtaPackageType otaPackageType,
  2. String deviceProfileId, {
  3. RequestConfig? requestConfig,
})

Implementation

Future<int> countDevicesByDeviceProfileIdAndEmptyOtaPackage(
    OtaPackageType otaPackageType, String deviceProfileId,
    {RequestConfig? requestConfig}) async {
  var response = await _tbClient.get<int>(
      '/api/devices/count/${otaPackageType.toShortString()}',
      queryParameters: {'deviceProfileId': deviceProfileId},
      options: defaultHttpOptionsFromConfig(requestConfig));
  return response.data!;
}