|  |  |  | 
|---|
|  |  |  | public BaseResponse<Boolean> isOnLine4Rtu(String rtuAddr) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | Boolean res = monitorSv.isOnLine4Rtu(rtuAddr); | 
|---|
|  |  |  | if(res == null){ | 
|---|
|  |  |  | res = false ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | log.error("命令执行异常", e); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询设备是否在线 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param rtuAddr | 
|---|
|  |  |  | * @param fboxId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "isOnLine4Mqtt") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<Boolean> isOnLine4Mqtt(String rtuAddr) { | 
|---|
|  |  |  | public BaseResponse<Boolean> isOnLine4Mqtt(String fboxId) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | Boolean res = monitorSv.isOnLine4Mqtt(rtuAddr); | 
|---|
|  |  |  | Boolean res = monitorSv.isOnLine4Mqtt(fboxId); | 
|---|
|  |  |  | if(res == null){ | 
|---|
|  |  |  | res = false ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | log.error("命令执行异常", e); | 
|---|