DrRandom
DrRandom
Sometimes i get a bunch of timeouts on page close or refresh like this: ```C FRAME TIMEOUT at millis: 39941 FRAME TIMEOUT at millis: 40124 FRAME TIMEOUT at millis: 40304...
- READ_WRITE_TIMEOUT is 150ms. ( it should be max 20-30 ms since a device takes about 10-15 ms to respond ) - vTaskDelay(1) is used to allow other tasks to...
yes yes yes
In my understanding the OTA should compare the hash of the two firmware. If the new firmware hash is broken it will load the older one and boot up. Can...
I can see the problem. My sketch can not handle the refresh of the firmware update page too. I'm interested in a solution too. We should implement some kind of...
My sketch looks like this: ```C server.on("/newFirmware", HTTP_POST, [](AsyncWebServerRequest *request) {}, [](AsyncWebServerRequest *request, const String &filename, size_t index, uint8_t *data, size_t len, bool final) { byte errCode = 1; if...
**Here is a simplified example. I'm testing it now.** ```C #define FIRMWARE_UPDATE_TIMEOUT 1000 long lastFirmwareUpdt_Packet_MS = 0; boolean firmwareUpdating = true; void checkFirmwareUpdate_Timeout(){ if( firmwareUpdating && millis() - lastFirmwareUpdt_Packet_MS >=...
It will end the update before it can begin. This line is executed on the start of the update.
**Thinking about this:** ```C void firmwareUpdateEnd( boolean isSuccess, AsyncWebServerRequest *request = NULL ); #define FIRMWARE_UPDATE_TIMEOUT 2000 boolean firmwareUpdating = false; long lastFirmwareUpdt_Packet_MS = 0; void checkFirmwareUpdate_Timeout(){ if( firmwareUpdating && millis()...
So you did not specify anything other then this: ```C if (!index) { Update.end(); } ``` ?