8 lines
235 B
Dart
8 lines
235 B
Dart
import 'package:dio/dio.dart';
|
|
|
|
/// Reads the pump's status from the plant gateway.
|
|
Future<String> pumpStatus(String gateway) async {
|
|
final response = await Dio().get('$gateway/api/pump/status');
|
|
return response.data.toString();
|
|
}
|