ソースを参照

处理5口网页出现ITK标志。

liyi 1 年間 前
親
コミット
cd25a16d21
共有3 個のファイルを変更した、9 個の追加 と 1 個の削除を含む
  1. BIN
      output/t113s/push/pdutar
  2. 1 1
      pro/CMakeLists.txt
  3. 8 0
      pro/src/appweb_handle.c

BIN
output/t113s/push/pdutar


+ 1 - 1
pro/CMakeLists.txt

@@ -269,7 +269,7 @@ set(PDU_SRC_LIST
 	${PROJECT_SOURCE_DIR}/src/hlw8110_handle.c
 	${PROJECT_SOURCE_DIR}/src/breaker_detection.c
 	${PROJECT_SOURCE_DIR}/src/cascade_slave_tcp.c
-
+	#${PROJECT_SOURCE_DIR}/src/Cellular.c
 
 	${PROJECT_SOURCE_DIR}/modbus/src/modbus.c
 	${PROJECT_SOURCE_DIR}/modbus/src/modbus-data.c

+ 8 - 0
pro/src/appweb_handle.c

@@ -3881,10 +3881,13 @@ static void communicationManagement(void *conn)
     }
     else if (strcmp(reqInfo.type, "listfourgPZQuery") == 0) // 4G网络处理
     {
+#if (CHIP_TYPE != CHIP_T113s)
         ack_str = communication_4G_ack_to_json(&_globalCellularManager,0);
+#endif
     }
     else if (strcmp(reqInfo.type, "fourgPZSave") == 0) // 4G网络处理
     {
+#if (CHIP_TYPE != CHIP_T113s)
         _globalCellularManager.mode = reqInfo._4g_wifi_info.Cellular_mode;
         CellularWIFI_paras_save();
         if (_globalCellularManager.mode)
@@ -3896,18 +3899,23 @@ static void communicationManagement(void *conn)
             thread_stop(THREAD_ID_Cellular);
         }
          ack_str = ctrl_sts_ack_to_json(); 
+#endif
     }
     else if(strcmp(reqInfo.type,"listWIFIPZQuery")==0) // WIFI处理
     {
+#if (CHIP_TYPE != CHIP_T113s)
         ack_str = communication_WIFI_ack_to_json(&_globalWIFIManager,0);
+#endif
     }
      else if (strcmp(reqInfo.type, "WIFIPZSave") == 0) // WIFI处理
     {
+#if (CHIP_TYPE != CHIP_T113s)
         _globalWIFIManager.mode = reqInfo._4g_wifi_info.WIFI_mode;
          strcpy(_globalWIFIManager.WIFI_name, reqInfo._4g_wifi_info.WIFI_name);
          strcpy(_globalWIFIManager.WIFI_code, reqInfo._4g_wifi_info.WIFI_code);
          CellularWIFI_paras_save();
          ack_str = ctrl_sts_ack_to_json(); 
+#endif
     }
     cJSON_Delete(cjson);
     http_reply(conn, 200, ack_str);