浏览代码

IOT调用测试

master
林万龙 3 年前
父节点
当前提交
b599fc5463
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      src/main/java/com/telpo/iotgateway/server/IotCommunication.java

+ 4
- 4
src/main/java/com/telpo/iotgateway/server/IotCommunication.java 查看文件

@@ -104,16 +104,16 @@ public class IotCommunication {
request.putQueryParameter("DeviceName", DeviceName);

long startTime = (new DateTime()).getTime();
//log.debug("开始IOT请求");
log.debug("开始IOT请求");
CommonResponse response = client.getCommonResponse(request);
long endTime = (new DateTime()).getTime();
long useTime = endTime-startTime;
allOfManTime = allOfManTime + useTime;
//log.debug("结束IOT请求, 用时:" + useTime);
log.debug("结束IOT请求, 用时:" + useTime);
Thread.sleep(10);
if (useTime > 2000) {
if (useTime > 1000) {
reqLongCount++;
log.debug(response.getData());
log.debug("RequestID:" + response.getData());
}
reqCount++;
if (reqCount == 10000) {


正在加载...
取消
保存