public async Task PostData(Sensor sensor) { SensorDb vl = new SensorDb(sensor.Type, sensor.Value, sensor.Timestamp); await _context.SensorData.InsertOneAsync(vl); _service.PublishOnTopic(sensor, "sensor/analytics"); }
public DataController(ILogger <DataController> logger, SensorDb db) : base(logger, db) { }
protected ControllerBase(ILogger logger, SensorDb db) { _logger = logger; _db = db; }
public UserController(ILogger <UserController> logger, SensorDb db) : base(logger, db) { }
public FloorPlanController(ILogger <FloorPlanController> logger, SensorDb db) : base(logger, db) { }