public IActionResult SetClientSettings(RtuClientSettings data) { _client.RtuMaster = data.RtuMaster; _client.RtuSlave = data.RtuSlave; return(Accepted()); }
public IActionResult GetClientSettings() { var settings = new RtuClientSettings { RtuMaster = _client.RtuMaster, RtuSlave = _client.RtuSlave }; return(Ok(settings)); }