esp-web-tools icon indicating copy to clipboard operation
esp-web-tools copied to clipboard

Polyfill web serial on Android

Open balloob opened this issue 1 year ago • 3 comments

This should make ESP Web Tools work on Android. Not tested yet.

Via https://github.com/espressif/esptool-js/pull/144

balloob avatar Jun 03 '24 02:06 balloob

You can simply import 'web serial polyfill' into your own project and implement 'navigator. serial' instead of modifying the source code to make it bloated

Kreedb avatar Aug 26 '24 01:08 Kreedb

Bloated? You must have missed the use of the dynamic import. It's not loaded when a user doesn't need it.

balloob avatar Aug 26 '24 07:08 balloob

What I mean is that compatibility with Android doesn't actually require 'esp-web-tools' to achieve it. We can use'web-serial-polyfill'to improve'navigator.serial '

Kreedb avatar Aug 26 '24 07:08 Kreedb

Good point.

balloob avatar Dec 22 '24 19:12 balloob