espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
276 stars 108 forks source link

Fix the issue for connect after disconnect #16

Closed adwait-esp closed 2 years ago

adwait-esp commented 2 years ago

Disconnect event is not cleaning up earlier connection information. Unable to connect to a different / same device after disconnect. Added a cleanup function call in the disconnect event.