jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
640 stars 115 forks source link

MicroWebSrv.py: don't create socket with parameters #60

Closed hoihu closed 4 years ago

hoihu commented 4 years ago

instead default init it with no parameters. This makes it more cross-platform compatible since not all uPy platforms have for example IPPROTO_TCP defined (e.g. the pyboard D serie)

hoihu commented 4 years ago

Note that I haven't tested this on a ESP32 board.

jczic commented 4 years ago

Yes :)