countDevicesByDeviceProfileIdAndEmptyOtaPackage method
Future<int>
countDevicesByDeviceProfileIdAndEmptyOtaPackage(
- OtaPackageType otaPackageType,
- String deviceProfileId, {
- 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!;
}