Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No firmware URL, aborting #141

Open
Atorcha opened this issue Jan 18, 2024 · 0 comments
Open

No firmware URL, aborting #141

Atorcha opened this issue Jan 18, 2024 · 0 comments

Comments

@Atorcha
Copy link

Atorcha commented Jan 18, 2024

  • Arduino board: esp32

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

If restart esp32 without line
bool updatedNeeded = esp32FOTA.execHTTPcheck();
I get that error.

This is part of my code.

void setup(void)
{
    Serial.begin(115200);
    Serial.setDebugOutput(true);
    esp32FOTA.setManifestURL( manifest_url );
    esp32FOTA.printConfig();
    sensors.begin();
    nvs.begin("datos",false); // use "datos" namespace
    READfromNVS();
    READLoginfromNVS();  
    WiFi.onEvent(WiFiStationDisconnected, WiFiEvent_t::ARDUINO_EVENT_WIFI_STA_DISCONNECTED);  
    connectWIFI();   
   // bool updatedNeeded = esp32FOTA.execHTTPcheck();    
    if (MUST_UPDATE == true) {
        nvs.putBool("must_update", false);
        Serial.println("Ha reiniciado ...y empieza actualizacion");       
        esp32FOTA.execOTA();
        delay (2000);
    }   
    ESPUI.setVerbosity(Verbosity::Verbose); //Turn ON verbose debugging
    timeClient.begin(); // Initialize a NTPClient to get time
    timeClient.setTimeOffset(3600); // Set offset time in seconds to adjust for your timezone, for example:
    // GMT +1 = 3600
    timeClient.update();

Check is triggered by a button.

Serial.println("Check update");  // Check version firmware    
    bool updatedNeeded = esp32FOTA.execHTTPcheck(); 
    if (updatedNeeded)
      {
        // necesita_update();
        nvs.putBool("must_update", true);
        Serial.println("Necesita actualizar...y reinicia");
        delay (3000);
        ESP.restart(); // Restart ESP32     
      } 
        Serial.println("NO necesita actualizar...");
        break;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant