troublegum / micropyserver

MicroPyServer is a simple HTTP server for MicroPython projects.
MIT License
126 stars 33 forks source link

Add a stop function? #9

Closed WaGi-Coding closed 2 years ago

WaGi-Coding commented 2 years ago

I needed a stop function, doing it that way now, but i think it could be done better to prevent it from throwing an error. Would be nice to have, in my case i wanted to stop the server when i've setup a wifi connection via the server running on a AP.

troublegum commented 2 years ago

Hi! Your code will not working. I will do rework of your code and add stop() function in next release.