diff options
Diffstat (limited to 'lib/model/connection/device_connection.dart')
-rw-r--r-- | lib/model/connection/device_connection.dart | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/model/connection/device_connection.dart b/lib/model/connection/device_connection.dart index 5c810f0..baeaa9f 100644 --- a/lib/model/connection/device_connection.dart +++ b/lib/model/connection/device_connection.dart @@ -13,12 +13,14 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. +import 'package:flutter/foundation.dart'; + enum ConnectionStatus { disconnected, connected, error } abstract class DeviceConnection { Future<void> connect(); Future<void> disconnect(); - ConnectionStatus get status; + ValueNotifier<ConnectionStatus> get status; // Future<Uint8List> read(String endpoint); // Future<void> write(String endpoint, Uint8List data); |