Added method that manages lights depending on heartbeat rate

This commit is contained in:
Giulia
2018-09-10 13:56:34 +02:00
parent e7dd9162c2
commit 662fb40df3
2 changed files with 57 additions and 0 deletions

View File

@@ -181,4 +181,10 @@ public class Database {
}
};
}
public ResultSet getDataFromDatabase(String sql) throws SQLException {
Statement statement = conn.createStatement();
ResultSet rs = statement.executeQuery(sql);
return rs;
}
}