添加后台下发短信指令的回复
authorTrillGates <williamtrillgates@gmail.com>
Tue, 7 Dec 2021 07:25:45 +0000 (15:25 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Tue, 7 Dec 2021 07:25:45 +0000 (15:25 +0800)
app/release/ICSer_V933_2112071524_release.apk [moved from app/release/ICSer_V932_2112071511_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/ic/protocols/protocol_beehome.java
app/version_code.properties

similarity index 77%
rename from app/release/ICSer_V932_2112071511_release.apk
rename to app/release/ICSer_V933_2112071524_release.apk
index 5e9058c..8ea34ec 100644 (file)
Binary files a/app/release/ICSer_V932_2112071511_release.apk and b/app/release/ICSer_V933_2112071524_release.apk differ
index 1e56e9d..7856aa8 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":932,"versionName":"2112071511","enabled":true,"outputFile":"ICSer_V932_2112071511_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V932_2112071511_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":933,"versionName":"2112071524","enabled":true,"outputFile":"ICSer_V933_2112071524_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V933_2112071524_release.apk","properties":{}}]
\ No newline at end of file
index 83dba41..730085d 100644 (file)
@@ -6,6 +6,7 @@ import android.net.Uri;
 import android.os.Environment;
 import android.provider.CalendarContract;
 import android.text.TextUtils;
+import android.text.method.AllCapsTransformationMethod;
 
 import com.enqualcomm.support.Config;
 import com.enqualcomm.support.CoreService;
@@ -2216,6 +2217,7 @@ public class protocol_beehome {
         //1表示成功,0表示失败
         String[] split = cmd.split(CMDSPLIT);
         if (split.length == 4) {
+            String indexId = split[2];
             String smsContent = split[3];
             String targetSmsContent = smsContent.replaceAll("@", "#").replaceAll("-", ",");
             ICLogger.d("targetSmsContent ==> " + targetSmsContent);
@@ -2223,6 +2225,14 @@ public class protocol_beehome {
                 ICLogger.d("handle sms cmd....");
                 CoreService.smsManager.handleSMS_CMD(null, targetSmsContent);
             }
+            mConnection.send(genStringMessage(cmdStrMap.get(CMD_TYPE.APSM),
+                    new StringBuffer(CMDHEADER)
+                            .append(cmdStrMap.get(CMD_TYPE.APSM))
+                            .append(CMDSPLIT)
+                            .append(indexId)
+                            .append(CMDSPLIT)
+                            .append("1")//收到就说成功了,不等处理,处理有些指令是阻塞的/是异步的
+                            .toString()));
         } else {
             ICLogger.d("parse BPSM error..");
         }
index 51a3111..a6be22c 100644 (file)
@@ -1,2 +1,2 @@
-#Tue Dec 07 15:11:53 CST 2021\r
-VERSION_CODE=932\r
+#Tue Dec 07 15:24:20 CST 2021\r
+VERSION_CODE=933\r