quickbird-uk / QuickbirdUWPDashboard

Quickbird UWP App and Server
http://www.quickbird.co.uk/
GNU General Public License v3.0
27 stars 7 forks source link

Data Routing Fuckup #72

Closed VladimirAkopyan closed 6 years ago

VladimirAkopyan commented 6 years ago

After i created the virtual device it became obvious that the data often shows up in the wrong dashboard.

var sensorBuffer = _sensorBuffer.FirstOrDefault(sb => sb.Sensor.SensorTypeID == message.SensorTypeID);
                            if(sensorBuffer == null)
                            {
                                Util.ToastService.NotifyUserOfError($"Device has a new sensor with typeID {message.SensorTypeID}, however adding sensors is not supported yet.");
                                break; 
                            }
                            var duration = TimeSpan.FromMilliseconds((double) message.duration/1000);