WAMP/AutobahnPython support in MicroPython

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: WAMP/AutobahnPython support in MicroPython

Post by pfalcon » Sun Oct 18, 2015 12:55 pm

Btw is there any simple http client library I could use to perform simple HTTP GET and receive content of a file from the server or should I do it via manual constructing of HTTP GET TCP payload (e.g. "GET /getFile HTTP/1.0\r\n\r\n").
I did a lot of work to make standard CPython http.client module work. In the end I made it run for some sites (but not others, depending on protocol options used by a site). But it takes 200KB of heap just to load all the dependent modules, so it will never run on PyBoard. Given that HTTP protocol in its core is dead simple, sending direct requests like you quote and getting responses is the easiest way to get work done. There're also examples of simple HTTP client and server includes as examples in uPy distribution: https://github.com/micropython/micropyt ... mples/unix
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply