Added method that manages lights depending on heartbeat rate
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user