Skip to content

Possibility for custom downloading from ethernetclient? #60

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

Open
LBlacklink opened this issue Mar 25, 2025 · 1 comment
Open

Possibility for custom downloading from ethernetclient? #60

LBlacklink opened this issue Mar 25, 2025 · 1 comment

Comments

@LBlacklink
Copy link

Hi, I've looked through the source code but I'm not knowledgable on this to know, is it possible to use your own ethernetclient implementation to download the OTA file? Something like how ArduinoOTA does it:

  byte b;
  while (length > 0) {
    if (!client.readBytes(&b, 1)) // reading a byte with timeout
      break;
    InternalStorage.write(b);
    length--;
  }
  InternalStorage.close();

I'd like this because I make the firmware available through my API which requires tokens and stuff to access, so it's more complicated than a publicly available URL

@pennam
Copy link
Contributor

pennam commented Mar 26, 2025

@LBlacklink I'm afraid this is not possible. The download function is implemented in tha ArduinoCore-mbed and it uses an mbed http client to download the file.

Probably the best way to approach this is to write your own version of this library download function.

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

2 participants