|
|
@@ -134,6 +134,7 @@ public class DeJuRFIDService implements IService {
|
|
|
String ipAddress = hardware.getIpAddress();
|
|
|
if (clientMap.containsKey(ipAddress)){
|
|
|
GClient client = clientMap.get(ipAddress);
|
|
|
+ log.info("报警状态:==============》{}",isAlarm.get());
|
|
|
if (!isAlarm.get()) {
|
|
|
scheduledExecutorService.execute(() -> {
|
|
|
isAlarm.set(true);
|
|
|
@@ -163,6 +164,7 @@ public class DeJuRFIDService implements IService {
|
|
|
client.sendSynMsg(msgAppSetGpo);
|
|
|
String status = state == 1 ? "start" : "stop";
|
|
|
if (0 == msgAppSetGpo.getRtCode()) {
|
|
|
+ log.info("============》灯带{}成功.",status);
|
|
|
if (state == 1) {
|
|
|
stopGpo(client, delayTime);
|
|
|
} else {
|