public IActionResult PutThrs([FromBody] float newThreshold) { //if (sr == null) return NotFound(); SensorRunner.ChgSensorThreshold(newThreshold); return(Ok()); }
public IActionResult GetManualTick() { SensorRunner.SendData(); return(Ok("manual tick")); }
public IActionResult PutInt([FromBody] int newInterval) { //if (sr == null) return NotFound(); SensorRunner.ChgSensorInterval(newInterval); return(Ok()); }
public IActionResult GetStop() { SensorRunner.StopSensor(); return(Ok()); }