|
@ -319,8 +319,14 @@ public class SideSlopeController extends BaseController { |
|
|
logger.info("边坡监测mqtt开始监听" + topicName); |
|
|
logger.info("边坡监测mqtt开始监听" + topicName); |
|
|
|
|
|
|
|
|
} catch (MqttException e) { |
|
|
} catch (MqttException e) { |
|
|
logger.warn("边坡监测mqtt连接异常"); |
|
|
logger.warn("边坡监测mqtt连接异常",e); |
|
|
|
|
|
scheduler.schedule(() -> { |
|
|
|
|
|
try { |
|
|
mqttSubscription(); |
|
|
mqttSubscription(); |
|
|
|
|
|
} catch (Exception exception) { |
|
|
|
|
|
throw new RuntimeException(exception); |
|
|
|
|
|
} |
|
|
|
|
|
}, UniversalEnum.TEN.getNumber(), TimeUnit.SECONDS); |
|
|
} |
|
|
} |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|