public async Task Post(string SensorInput, double SensorValue)
 {
     var telemetryItem = new Telemetry2 { Sensor = Normalise(SensorInput), Value = SensorValue, Complete = false };
     await InsertTelemetryItem(telemetryItem);
 }
 public async Task DeleteTelemetryItem(Telemetry2 item)
 {
     await telemetryTable.DeleteAsync(item);
 }
 public async Task InsertTelemetryItem(Telemetry2 telemetryItem)
 {
     await telemetryTable.InsertAsync(telemetryItem);
     //await SyncAsync(); // offline sync
 }
 public async Task UpdateTelemetryItem(Telemetry2 item)
 {
     if (item != null)
     {
         await telemetryTable.UpdateAsync(item);
     }
 }