Commit 24862782 authored by wanghao's avatar wanghao

Revert "1 测试 上电后通信 和 最终完成 定时任务功能"

parent bdb2918e
......@@ -35,6 +35,8 @@ public class DeviceStatusReaderAndTimeSetter {
// 常量配置(优化重试,减少耗时)
public static final int START_ADDRESS = 0;
public static final int REGISTER_COUNT = 10;
public static final int TARGET_VALUE = 1;
public static final int MAX_RETRIES = 1; // 仅1次重试(减少总耗时)
public static final int RETRY_DELAY = 200; // 重试间隔200ms(缩短等待)
// 线程池:Spring管理,非静态(避免资源泄漏)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment