修改版本号1.1.16

修改ota逻辑
This commit is contained in:
zzh 2025-06-21 10:28:55 +08:00
parent 64a10c83d0
commit 3672a5792f

3
main.c
View File

@ -59,7 +59,7 @@ int fd;
int UPCASE=0;
int count_value=0;
int getPayloadTime=120*1000;//usecond
char softwareVersion[16]="1.1.15";
char softwareVersion[16]="1.1.16";
char stationsn[16]="TJ251372224247";//TJ250995217957
char productid[8]="10045";
char appKey[32]="fdhQmhqhvbL1cf1K9mUqt";
@ -1823,6 +1823,7 @@ void *thread_mqtt_recv(void *arg){
system("unzip /userdata/tx_ota.zip");
//system("mv ../tx_ota/* /userdata/ota");
//system("rm -fr /userdata/ota/tx_ota");
system("rm -fr /userdata/ota");
system("mv /userdata/tx_ota /userdata/ota");
system("mv /userdata/ota/ustart.sh /userdata");
system("sync");