Skip to content

Commit b0b175b

Browse files
committed
Todo updated
1 parent 29c4f90 commit b0b175b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sensors_dashboard/lib/view_model/sensor_graph_screen_viewmodel.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ class SensorGraphScreenViewmodel with ChangeNotifier {
7070
final data = messageEvent.data.toString();
7171
final json = jsonDecode(data);
7272

73-
// TODO : unable to read read json array into List<Double>
73+
// TODO : Fix unable to read parsed json
74+
// Its weird that json = jsonDecode(data) is successfully parsed
75+
// but json["timestamp"] is causing error but json["timestamp"].toString() is not
76+
// same issue with json["values"]
7477
List<double> values = json["values"]
7578
.toString()
7679
.replaceAll("[", "")

0 commit comments

Comments
 (0)