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

Memory importing MicroWebSrv on LoPy 1 #22

Closed jajberni closed 6 years ago

jajberni commented 6 years ago

When running the basic example, in the import statement: from microWebSrv import MicroWebSrv

I get the following exception: MemoryError: memory allocation failed, allocating 56 bytes

According to print(gc.mem_free()) my free memory before the import is 57072

I am trying this on a LoPy with firmware version '1.17.3.b1'

jczic commented 6 years ago

Hello, Yes, it must be hosting and compiled in the firmware (/frozen) or turn under the OEM pycom devices with 4Mo of SDRAM.