Files
pruefwerk/fixtures/nightly/mobile/ios-cocoapods/PumpApp/PumpClient.swift
T
sharang 9b85d5148e
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m15s
CI / Deploy Dashboard (push) Successful in 6m20s
CI / Deploy Agent (push) Successful in 7m53s
fix(sbom): no clean-looking result for mobile apps without readable lockfiles (#440)
2026-10-01 18:45:27 +00:00

13 lines
407 B
Swift

import AFNetworking
/// Reads the pump's status from the plant gateway.
final class PumpClient {
private let manager = AFHTTPRequestOperationManager()
func status(gateway: String, done: @escaping (Any?) -> Void) {
manager.get("\(gateway)/api/pump/status", parameters: nil,
success: { _, body in done(body) },
failure: { _, _ in done(nil) })
}
}