| | |
| | | package com.ruoyi.device.uav.service; |
| | | |
| | | import com.dtflys.forest.exceptions.ForestNetworkException; |
| | | import com.dtflys.forest.exceptions.ForestRuntimeException; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.JsonMappingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | |
| | | if (this.uavUser != null) { |
| | | this.token = (String) this.uavUser.get("access_token"); |
| | | } |
| | | } catch (ForestNetworkException e) { |
| | | e.printStackTrace(); |
| | | } catch (ForestRuntimeException e) { |
| | | log.error("无人机连接超时" + e.getMessage()); |
| | | } catch (JsonMappingException e) { |
| | | e.printStackTrace(); |
| | | } catch (JsonProcessingException e) { |