| | |
| | | } |
| | | } |
| | | |
| | | /** 保存单通道的当前观测参数和工步方案,不改变设备在线或工作状态。 */ |
| | | @PutMapping("/dev/bts-simulator/devices/{deviceId}/channels/{channelId}/configuration") |
| | | public StateSnapshot configureChannel(@PathVariable int deviceId, @PathVariable int channelId, |
| | | @RequestBody com.battery.device.simulator.BtsSimulatorStateStore.ChannelConfiguration configuration) |
| | | { |
| | | try { |
| | | simulator.configureChannel(deviceId, channelId, configuration); |
| | | return simulator.snapshot(); |
| | | } |
| | | catch (IllegalArgumentException exception) { throw badRequest(exception); } |
| | | } |
| | | |
| | | /** 修改软件可访问性,设备配置继续保留。 */ |
| | | @PutMapping("/dev/bts-simulator/software") |
| | | public StateSnapshot software(@RequestBody SoftwareCommand command) |