public void GetSensorReadingsFromTableInDB()
    {
        DBInstance dbInstance = new DBInstance(databaseName);

        dbInstance.InitialiseSQLiteConnection();
        SensorReadings = dbInstance.GetSensorReadingsFromTable(tableNameInDatabase);
        dbInstance.CloseSQLiteConnection();
    }
Example #2
0
 /// <summary>
 /// Utility method acquires sensor readings from a specified table from the connected database
 /// by executing the appropriate SQL string.
 /// </summary>
 /// <param name="tableName">Name of table whose sensor readings will be acquired.</param>
 /// <returns>List of sensor readings from a specified table in the connected database.</returns>
 public static List <BaseSensorReading> GetSensorReadingsFromDatabaseTable(string tableName)
 {
     return(dbInstance.GetSensorReadingsFromTable(tableName));
 }