// ----------------------------------------- // Insert measured data //------------------------------------------ /// <summary> /// Inserts a measure for a particular sensor of a device into the database. /// </summary> /// <param name="deviceName">Device producing the data</param> /// <param name="outputDescription">Parameter to me inserted</param> /// <param name="unit">Unit used in device</param> /// <param name="value">Value of parameter.</param> /// <param name="time">Time of measurement</param> public void InsertMeasurement(string deviceName, string outputDescription, string unit, string value, string time) { _dbConnector.AddDataOrigin(deviceName); _dbConnector.AddDataOutput(deviceName, outputDescription); if (unit != null) { _dbConnector.AddDataUnit(deviceName, outputDescription, unit); } _dbConnector.AddSensorData(deviceName, outputDescription, value, time, CurrentSessionId); }