48 points · by jstroem · 5y ago · 28 comments
Consider:
> Show HN: Trick people into flashing their ESP32s with your firmware by visiting your web page
You can try a demo here: https://unjavascripter-web-serial-example.glitch.me/
I ran into this specific API following the great blues wireless tutorial (cell connectivity cards and dev cards with ESP32 support) which only works in Chrome https://dev.blues.io/get-started/quickstart/notecarrier-af/
Much like the container tabs extension, in terms of requiring an addon for certain functionality. Or, if mozilla doesn't do it themselves, a (horrifying though warning) third-party-extension with an external helper application to connect to the serial device, and a API polyfill injected into every page.
Here to show a little library that makes it easier to write custom JavaScript code that flashes ESP32s.
The library uses the new WebSerial API available in Edge and Chrome browsers.
Wrapping functionality with the right security is key, but I browsers in general is already doing a good job in that regard IMO.
The whole platform looks really interesting.