Ver código fonte

[WallPadDevService]
1. 난방V1 각방상태 요청 정보 하위 프로토콜 호환
- 프로토콜2.0 하위 호환(길이제한)
2. 최신 APK 등록

jglee 2 anos atrás
pai
commit
638f0508aa

BIN
10_Release/WallPadDevService.apk


+ 3 - 1
WallPadDevService/src/main/java/com/artncore/wallpaddevservice/driver/HeatingV1_Controller.java

@@ -951,7 +951,9 @@ public class HeatingV1_Controller extends DeviceManager
             DeviceLog("[EachRoomStatus_ReplyParsing] Reply is null");
             return null;
         }
-        if(Reply.length != 6)
+        //jglee - 별내아이파크 현장 확인 인결과 쓰레기 2바이트가 끝단에 들어가 있음 , 프로토콜에는 6바이트로 되어 있음
+        // 프로토콜 확인 결과 2.0이하일 경우, 8바이트 사용함
+        if(!(Reply.length == 6 || Reply.length == 8))
         {
             // 길이 체크
             Log.w(TAG, "[EachRoomStatus_ReplyParsing] Reply.length  fail ... " + Reply.length);