//当升级开始时,打印日志 voidupdate_started() { Serial.println("CALLBACK: HTTP update process started"); }
//当升级结束时,打印日志 voidupdate_finished() { Serial.println("CALLBACK: HTTP update process finished"); }
//当升级中,打印日志 voidupdate_progress(int cur, int total) { Serial.printf("CALLBACK: HTTP update process at %d of %d bytes[%.1f%%]...\n", cur, total, cur * 100.0 / total); }
Connection WIFI.......... start update CALLBACK: HTTP update process started CALLBACK: HTTP update process at 0 of 232976 bytes[0.0%]... CALLBACK: HTTP update process at 0 of 232976 bytes[0.0%]... CALLBACK: HTTP update process at 4096 of 232976 bytes[1.8%]... CALLBACK: HTTP update process at 8192 of 232976 bytes[3.5%]... CALLBACK: HTTP update process at 12288 of 232976 bytes[5.3%]... CALLBACK: HTTP update process at 16384 of 232976 bytes[7.0%]... CALLBACK: HTTP update process at 20480 of 232976 bytes[8.8%]... CALLBACK: HTTP update process at 24576 of 232976 bytes[10.5%]... CALLBACK: HTTP update process at 28672 of 232976 bytes[12.3%]... CALLBACK: HTTP update process at 32768 of 232976 bytes[14.1%]... CALLBACK: HTTP update process at 36864 of 232976 bytes[15.8%]... CALLBACK: HTTP update process at 40960 of 232976 bytes[17.6%]... CALLBACK: HTTP update process at 45056 of 232976 bytes[19.3%]... CALLBACK: HTTP update process at 49152 of 232976 bytes[21.1%]... CALLBACK: HTTP update process at 53248 of 232976 bytes[22.9%]... CALLBACK: HTTP update process at 57344 of 232976 bytes[24.6%]... CALLBACK: HTTP update process at 61440 of 232976 bytes[26.4%]... CALLBACK: HTTP update process at 65536 of 232976 bytes[28.1%]... CALLBACK: HTTP update process at 69632 of 232976 bytes[29.9%]... CALLBACK: HTTP update process at 73728 of 232976 bytes[31.6%]... CALLBACK: HTTP update process at 77824 of 232976 bytes[33.4%]... CALLBACK: HTTP update process at 81920 of 232976 bytes[35.2%]... CALLBACK: HTTP update process at 86016 of 232976 bytes[36.9%]... CALLBACK: HTTP update process at 90112 of 232976 bytes[38.7%]... CALLBACK: HTTP update process at 94208 of 232976 bytes[40.4%]... CALLBACK: HTTP update process at 98304 of 232976 bytes[42.2%]... CALLBACK: HTTP update process at 102400 of 232976 bytes[44.0%]... CALLBACK: HTTP update process at 106496 of 232976 bytes[45.7%]... CALLBACK: HTTP update process at 110592 of 232976 bytes[47.5%]... CALLBACK: HTTP update process at 114688 of 232976 bytes[49.2%]... CALLBACK: HTTP update process at 118784 of 232976 bytes[51.0%]... CALLBACK: HTTP update process at 122880 of 232976 bytes[52.7%]... CALLBACK: HTTP update process at 126976 of 232976 bytes[54.5%]... CALLBACK: HTTP update process at 131072 of 232976 bytes[56.3%]... CALLBACK: HTTP update process at 135168 of 232976 bytes[58.0%]... CALLBACK: HTTP update process at 139264 of 232976 bytes[59.8%]... CALLBACK: HTTP update process at 143360 of 232976 bytes[61.5%]... CALLBACK: HTTP update process at 147456 of 232976 bytes[63.3%]... CALLBACK: HTTP update process at 151552 of 232976 bytes[65.1%]... CALLBACK: HTTP update process at 155648 of 232976 bytes[66.8%]... CALLBACK: HTTP update process at 159744 of 232976 bytes[68.6%]... CALLBACK: HTTP update process at 163840 of 232976 bytes[70.3%]... CALLBACK: HTTP update process at 167936 of 232976 bytes[72.1%]... CALLBACK: HTTP update process at 172032 of 232976 bytes[73.8%]... CALLBACK: HTTP update process at 176128 of 232976 bytes[75.6%]... CALLBACK: HTTP update process at 180224 of 232976 bytes[77.4%]... CALLBACK: HTTP update process at 184320 of 232976 bytes[79.1%]... CALLBACK: HTTP update process at 188416 of 232976 bytes[80.9%]... CALLBACK: HTTP update process at 192512 of 232976 bytes[82.6%]... CALLBACK: HTTP update process at 196608 of 232976 bytes[84.4%]... CALLBACK: HTTP update process at 200704 of 232976 bytes[86.1%]. .. CALLBACK: HTTP update process at 204800 of 232976 bytes[87.9%]... CALLBACK: HTTP update process at 208896 of 232976 bytes[89.7%]... CALLBACK: HTTP update process at 212992 of 232976 bytes[91.4%]... CALLBACK: HTTP update process at 217088 of 232976 bytes[93.2%]... CALLBACK: HTTP update process at 221184 of 232976 bytes[94.9%]... CALLBACK: HTTP update process at 225280 of 232976 bytes[96.7%]... CALLBACK: HTTP update process at 229376 of 232976 bytes[98.5%]... CALLBACK: HTTP update process at 232976 of 232976 bytes[100.0%]... CALLBACK: HTTP update process at 232976 of 232976 bytes[100.0%]... CALLBACK: HTTP update process finished
Connection WIFI..... start update CALLBACK: HTTP update process started [ 4281][E][HTTPUpdate.cpp:323] handleUpdate(): Magic header does not start with 0xE9
//当升级开始时,打印日志 voidupdate_started() { Serial.println("CALLBACK: HTTP update process started"); }
//当升级结束时,打印日志 voidupdate_finished() { Serial.println("CALLBACK: HTTP update process finished"); }
//当升级中,打印日志 voidupdate_progress(int cur, int total) { Serial.printf("CALLBACK: HTTP update process at %d of %d bytes[%.1f%%]...\n", cur, total, cur * 100.0 / total); }