Esempio n. 1
0
        public void Post([FromBody] SensorDataDTO value)
        {
            var sensorData = new SensorData()
            {
                SenderMAC = value.MAC, Temperature = value.Temp, Humidity = value.Humidity, IngestionTimestamp = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ"), BatteryLevel = value.BatteryLevel
            };

            _processData.Add(sensorData);
        }