| | |
| | | */ |
| | | public static MqttBrokerDTO getMqttBrokerWithDrc(String clientId, String username, Long age, Map<String, ?> map) { |
| | | if (!mqtt.containsKey(MqttUseEnum.DRC)) { |
| | | throw new RuntimeException("Please configure the drc link parameters of mqtt in the backend configuration file first."); |
| | | throw new RuntimeException("请先在后端配置文件中配置mqtt的drc链接参数。"); |
| | | } |
| | | Algorithm algorithm = JwtUtil.algorithm; |
| | | |
| | |
| | | .build()); |
| | | |
| | | if (ResponseResult.CODE_SUCCESS != reply.getResult()) { |
| | | throw new RuntimeException("SN: " + param.getDockSn() + "; Error Code:" + reply.getResult() + "; Failed to enter command flight control mode, please try again later!"); |
| | | throw new RuntimeException("SN: " + param.getDockSn() + "; Error Code:" + reply.getResult() + "; 进入命令飞行控制模式失败,请稍后再试!"); |
| | | } |
| | | |
| | | refreshAcl(param.getDockSn(), param.getClientId(), pubTopic, subTopic); |