Browse Source

add log

devab
MTing 4 weeks ago
parent
commit
fc9d86055e
  1. 2
      app/src/main/java/com/ouxuan/oxface/device/MqttManager.java

2
app/src/main/java/com/ouxuan/oxface/device/MqttManager.java

@ -705,7 +705,7 @@ public class MqttManager {
*/ */
private void handleGateCommand(String messageContent) { private void handleGateCommand(String messageContent) {
LogManager.logInfo(TAG, "处理门闸控制命令: " + messageContent); LogManager.logInfo(TAG, "处理门闸控制命令: " + messageContent);
// 返回示例{"gate":"{\"id\":\"\",\"name\":\"gate\",\"token\":\"\",\"value\":{\"cid\":\"1\",\"tcp\":\"127.0.0.1:10000\"},\"is_delay\":true,\"delay_time\":\"\",\"notice_url\":\"\",\"is_async\":false,\"queue_group\":\"gate\"}"}
try { try {
String gateCommand = extractGateCommand(messageContent); String gateCommand = extractGateCommand(messageContent);
if (gateCommand != null) { if (gateCommand != null) {

Loading…
Cancel
Save