找不到文件.c问题
authord15521469561 <1731678236@qq.com>
Sat, 9 May 2026 09:21:50 +0000 (17:21 +0800)
committerd15521469561 <1731678236@qq.com>
Sat, 9 May 2026 09:21:50 +0000 (17:21 +0800)
main/CMakeLists.txt
main/crc.c
main/user_mqtt.c

index 51521a0..84847da 100644 (file)
@@ -1,4 +1,4 @@
-idf_component_register(SRCS "user_http.c" 
+idf_component_register(SRCS 
                                                        "user_mqtt.c" 
                                                        "app_main.c"
                                                        "iap.c"
@@ -11,7 +11,8 @@ idf_component_register(SRCS "user_http.c"
                                                        "user_flash.c"
                                                        "crc.c"
                                                        "uart.c"
-                                                       "https_ota.c"         
+                                                       "https_ota.c" 
+                                                       "user_http.c"        
                                                     
                     PRIV_REQUIRES mqtt
                                                                esp_wifi
index 99aea47..60008c3 100644 (file)
@@ -2,7 +2,7 @@
 #include "crc.h"
 #include "esp_partition.h"
 #include "esp_log.h"
-static const char *CHECKCRC_TAG = "COMMON";
+
 #if (0)
 /**
   * @brief 字节按位逆序  1100 0101 -> 1010 0011
index c296e51..318a90f 100644 (file)
@@ -884,7 +884,7 @@ static void mqtt_parse_recv_data(char *data, int data_len)
                 // const char* version = "10.165";
                 uint16_t new_version = version_str_to_hex(version->valuestring);
                 // 核心:把 0x0A15 转成浮点数 10.21
-                ESP_LOGI(MQTT_TAG, "固件版本: %s %04x", version->valuestring,new_version);
+                ESP_LOGI(MQTT_TAG, "固件版本: %s %04x FW_VERSION:%04x", version->valuestring,new_version,FW_VERSION);
                 if(new_version != FW_VERSION && new_version != 0xffff)
                 {
                     //开启ota线程
@@ -911,7 +911,7 @@ static void mqtt_parse_recv_data(char *data, int data_len)
                 }
                 
             }else{
-                #if ENABLE_HTTPS_OTA_FUNC
+                #if 0
                 const char *ota_url = filePath->valuestring;
                 // static const char *filePath="https://pxn-iot.s3.us-east-2.amazonaws.com/iot01/2026/04/27/69ef076479113dba3ec8e375.bin";//https://pxn-iot.s3.us-east-2.amazonaws.com/iot01/2026/04/20/69e589eb7a67c1057c3d452e.bin";
                 uint8_t filePath_Len = strlen(ota_url);