#include "crc.h"
#include "esp_partition.h"
#include "esp_log.h"
-static const char *CHECKCRC_TAG = "COMMON";
+
#if (0)
/**
* @brief 字节按位逆序 1100 0101 -> 1010 0011
// 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线程
}
}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);