| | |
| | | vo.softBytesCalculate = ppo.programCalculateBytes ; |
| | | vo.softByteSrc16 = ppo.programCrc16 ; |
| | | } |
| | | /** |
| | | * 监视: |
| | | * 重置,演示的重置 |
| | | * @return 操作结果 |
| | | */ |
| | | @GetMapping(path = "/demoReset") |
| | | @SsoAop() |
| | | public BaseResponse<Boolean> demoReset(){ |
| | | if(RtuUpgradeStateReceiverCtrl.cache == null){ |
| | | //return BaseResponseUtils.buildError("当前没有升级任务") ; |
| | | //正式运行时,下面两行去掉,上面一行打开 |
| | | RtuUpgradeStateReceiverCtrl ctrl = SpringContextUtil.getBean(RtuUpgradeStateReceiverCtrl.class); |
| | | ctrl.resetDemo(); |
| | | ctrl.demo(); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(true) ; |
| | | } |
| | | |
| | | /** |
| | | * 监视: |
| | |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | | description = "返回操作成功与否数据(BaseResponse.content:Boolean)", |
| | | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, |
| | | schema = @Schema(implementation = Boolean.class))} |
| | | schema = @Schema(implementation = VoWatch.class))} |
| | | ) |
| | | }) |
| | | @GetMapping(path = "/curUpgradeState") |