Esempio n. 1
0
        public bool WriteToDB(cTelemetryEntry TelemetryEntry, string SatName)
        {
            var point = PointData
                        .Measurement("mem")
                        .Tag("host", SatName + "-ID" + TelemetryEntry.Id.ToString("00"))
                        .Field("value", TelemetryEntry.Value)
                        .Timestamp(TelemetryEntry.Timestamp, WritePrecision.Ns);

            using (var writeApi = _Client.GetWriteApi())
            {
                writeApi.WritePoint(_Bucket, _Organisation, point);
            }

            return(true);
        }
 public bool WriteToDB(cTelemetryEntry TelemetryEntry, string SatName)
 {
     Console.WriteLine("From: {0} - {1}", SatName, TelemetryEntry.ToString());
     return(true);
 }