Coder Social home page Coder Social logo

eotaupdate's People

Contributors

fcapano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eotaupdate's Issues

Cryptic HTTP Error

Hi,
I am trying to get the example to work. I get the following error when checking for an update:

[E][EOTAUpdate.cpp:169] PerformOTA(): [HTTP] [ERROR] [1073422052] @��?␏

Here's the content of my cfg.txt file :

http://192.168.206.20/ota/firmware.bin
3

Any idea what could be happening? Also, how do you set the log level?

Format file cfg.txt

Thanks for the work! I would like to add a description to your library.

  1. The cfg.txt file must be in UNIX format (ANSI encoding). This is especially true for all Windows users! Line break (LR) should be 0x0A and nothing more.

  2. There was a question about the Progress bar. It's possible! Because the Updater.cpp library already has a callback function.
    For example, create your own callback function (here using serial and LCD):

void OnProgress(int progress, int totalt)
{
   static int last = 0;
   int progressPercent = (100 * progress) / totalt;
   Serial.print(".");
   if (last != progressPercent && progressPercent % 5 == 0)
   {
     // print to 5%
     Serial.println(progressPercent);
     lcd.setCursor(progressPercent / 5 - 1, 2);
     lcd.print(char(255));
   }
   last = progressPercent;
}

And before running updater.CheckAndUpdate(); run the code:

// set update callback function
Update.onProgress(OnProgress);
updater.CheckAndUpdate();

Check for update and return boolean

I'd like to check for an update, update my display, and the preform the update so the user knows what's happening, but I can't seem to do this currently.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.