Open conalllaverty opened 8 months ago
esptool-js
will not work on electron because it requires the window.navigator.serial
API which is not supported on whatever browser electron uses. Since you're already using Electron you could package your app with the python version of esptool which is more supported and works better.
esptool-js
will not work on electron because it requires thewindow.navigator.serial
API which is not supported on whatever browser electron uses. Since you're already using Electron you could package your app with the python version of esptool which is more supported and works better.
esptool-js
uses the Web Serial
API which is supported in electron. Electron uses chromium browser which supports both Web Serial
and Web Bluetooth
APIs.
Documentation for the same can be found here - https://www.electronjs.org/docs/latest/tutorial/devices#web-serial-api
I'm sorry, I completely missed that page. It seems electron has a couple extra steps to work with web serial so that might be why esptool-js
doesn't work out of the box.
I don't have an example code but esptool-js
should work with electron. Just try using the Web Serial
API instead of the serialport
package.
Hi, Does anyone have an example project of being able to flash an ESP32 using esptool-js from an Electron app?
I'm currently getting this error.