Bot releases are visible (Hide)
Now based on micropython 1.12
#24 - Unexpectedly closed connection on non existing URLs (404)
Published by belyalov about 5 years ago
Published by belyalov almost 6 years ago
Include examples into release firmware - in order to simplify flash-n-try, flash image and simply run example:
>>> import network
# Connect to WiFi
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
>>> sta_if.connect('<ssid>', '<password>')
# Run Hello World! :)
>>> import examples.hello_world as hello
>>> hello.run()
Published by belyalov almost 6 years ago
#18 - This release fixes broken travis
script which result in broken release images for esp32
/ esp8266
Published by belyalov almost 6 years ago
@resource
decorator: @app.resource('/user/<id>')
def user(data, id):
return {'id': id, 'name': 'foo'}
Now binaries for esp8266
based on https://github.com/micropython/micropython/commit/4737ff8054e84b3ccd1e7364d773a8c1d14095f5 which contains bugfix for TCP listen/accept backlog
Published by belyalov almost 6 years ago
Since HTTP/1.0 does not support Transfer-Encoding: chunked
- workaround added: use HTTP/1.1
with Connection: close
Simple counter for processed connections added
Published by belyalov over 6 years ago
In order to unify logging mechanism now tinyweb is using logging
instead of pure print()
.
WARNING this may break your app! Consider use of logging
module.
P.S. New image already contains logging
module frozen.
Published by belyalov over 6 years ago
Now based on top of micropython v1.9.4. release.
debug
. When set - unhandled exception data will be propogated to client as well.Published by belyalov over 6 years ago
Minor release aimed to fix bug with max_concurrency
and refactor implementation of request_timeout
.
Published by belyalov over 6 years ago
max_concurrency
param)request_timeout
param)dict
to json
sometimes too expensive)ECONNREST
, ECONNABORT
, etc)yield from
to async / await
Published by belyalov over 6 years ago
Mostly bugfixes, including but not limited to
add_resource(self, cls, url, **kwargs)
. Refer to #10content_encoding
to send_file()
parse_headers
parameter replaced with save_headers
dict to make it less memory consuming. Refer to #13os
to uos
to remove unneeded dependency.def redirect(self, location, msg=None)
Published by belyalov over 6 years ago
First stable release of tinyweb
.
Supported and tested devices:
Published by belyalov over 6 years ago
Content-Length
in auto OPTIONS
methodadd_resource()
- now accepts either - class or class instanceAccess-Control-Allow-Methods
use comma instead of whitespaceBroken Pipe
errorresponse.redirect()
404
, 500
, etc)Published by belyalov almost 7 years ago
First working version of tinyweb.
ESP32
device, however, ESP8266
works fine, but requires frozen bytecode due to RAM limitation.