Skip to content

Commit

Permalink
show file content mesurements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazmin Ferreiro authored and Jazmin Ferreiro committed Jul 4, 2021
1 parent dc7cb95 commit 7db2ad1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/screens/connection/connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ class FindDevicesScreen extends StatelessWidget {
}

class DeviceScreen extends StatefulWidget {
const DeviceScreen({Key? key, required this.device, required this.storage}) : super(key: key);
const DeviceScreen({Key? key, required this.device}) : super(key: key);
final BluetoothDevice device;
final GloveEventsStorage storage;
@override
_DeviceScreenState createState() => _DeviceScreenState(this.device);
}
Expand All @@ -167,8 +166,9 @@ class _DeviceScreenState extends State<DeviceScreen> {
}

_readGloveMovements(BluetoothCharacteristic characteristic) async {
var f = await new GloveEventsStorage().createFile("HOLA");
var mf = new MeasurementsFile(f, DateTime.now());
var d= DateTime.now();
var f = await new GloveEventsStorage().createFile("$d.txt");
var mf = new MeasurementsFile(f, d);

while(true){
String valueRead = await characteristic.read().then((value) => new String.fromCharCodes(value));
Expand Down

0 comments on commit 7db2ad1

Please sign in to comment.