Skip to content

fileArray option for writeFlash #219

@lshaf

Description

@lshaf

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • Provided specific use cases and examples.

Feature description

Please add more option beside "data" which require binString. readAsBinaryString is deprecated. So maybe you can add blob, arrayBuffer or Uint8Array for downloaded file (not via input file)

Something like bin? The lib can either read "data" as now or "bin" if you download the bin then flash.

Sorry if my english bit mess but I hope you can understand.

I tried to implement without readAsBinaryString and it took me some times to convert from arrayBuffer to BinaryString :D

Use cases

Easier way to flash esp from downloaded bin without converting to binary string

Alternatives

I make convertion function here https://github.com/lshaf/puteros/blob/main/website%2Fcomponents%2FFlashFirmware.js:71

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions