From c88f44a7d604bf91e22a5cb076018884a01a6261 Mon Sep 17 00:00:00 2001
From: Van333 <van666666@foxmail.com>
Date: 星期六, 19 十一月 2022 15:11:17 +0800
Subject: [PATCH] 替换阿里oss为本地minio,关闭对时存在定时任务时睡眠10min
---
ximon-admin/src/main/java/com/sandu/ximon/admin/localMQTT/controller/localMQTTTestController.java | 50 ++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/localMQTT/controller/localMQTTTestController.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/localMQTT/controller/localMQTTTestController.java
index 7b7c225..b417ffa 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/localMQTT/controller/localMQTTTestController.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/localMQTT/controller/localMQTTTestController.java
@@ -6,6 +6,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import static com.sandu.ximon.admin.localMQTT.callback.StatusMqttCallBack.localMqttConnectStatusMap;
import static java.lang.Thread.sleep;
/**
@@ -21,18 +22,47 @@
@RequestMapping("/test")
- public static String localMQTT() throws InterruptedException {
+ public String localMQTT() throws InterruptedException {
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 100; i++) {
- String result1 = MqttClientUtil.sendMqttMsg("363832544E5008FF3A32FFFF",
- "FEA501000BFE010003FFFF0045971477B6D8C2CA");
- log.info("杩斿洖缁撴灉:"+result1);
- sleep(1000);
- String result2 = MqttClientUtil.sendMqttMsg("363832544E5008FF3A32FFFF",
- "FEA501000BFE010003FFFF640F48B1367ABDE0B9");
- log.info("杩斿洖缁撴灉:"+result2);
- sleep(1000);
+ /*
+ * 寮�鐏�100
+ * FEA501000BFE010003FFFF0045971477B6D8C2CA
+ * 10
+ * FEA501000BFE010003FFFF0AA542FD69D4E6194E
+ * 鍏崇伅
+ * FEA501000BFE0100030001007130ECA9150640E6
+ * 鏌ヨ蹇冭烦鏃堕棿
+ * FEA501000AFE110002FFFF26008FBE3DAC7C0D
+ * 璁剧疆蹇冭烦30绉�
+ * FEA501000CFE210004FFFF001E9BB444E9C75BDB49
+ * 5鍒嗛挓
+ * FEA501000CFE210004FFFF012C4A7824285825CB53
+ * */
+// 寮�10
+ String result1 = MqttClientUtil.sendMqttMsg("363832544e5008ff3a32ffff",
+ "FEA501000BFE010003FFFF0AA542FD69D4E6194E");
+ log.info("寮�鐏繑鍥炵粨鏋�:"+result1);
+ sleep(5000);
+// 鍏�
+ String result2 = MqttClientUtil.sendMqttMsg("363832544e5008ff3a32ffff",
+ "FEA501000BFE0100030001007130ECA9150640E6");
+ log.info("鍏崇伅杩斿洖缁撴灉:"+result2);
+ sleep(5000);
+//// 蹇冭烦鏌ヨ
+ String result3 = MqttClientUtil.sendMqttMsg("363832544e5008ff3a32ffff",
+ "FEA501000AFE110002FFFF26008FBE3DAC7C0D");
+ log.info("蹇冭烦鏌ヨ杩斿洖缁撴灉:"+result3);
+ sleep(3000);
+ String result4 = MqttClientUtil.sendMqttMsg("363832544e5008ff3a32ffff",
+ "FEA501001AFE230012FE23000A00017F1019647F111E005428F600EC64EC194EA28A7C");
+ log.info("瀹氭椂浠诲姟杩斿洖缁撴灉:"+result4);
+ sleep(3000);
+
+ System.out.println("閾炬帴鐘舵�侊細---"+i+"---:");
+ System.out.println(localMqttConnectStatusMap.get("363832544e5008ff3a32ffff"));
+ sleep(3000);
}
--
Gitblit v1.9.3