Search found 221 matches

by SpotlightKid
Sat Nov 18, 2017 11:27 am
Forum: ESP8266 boards
Topic: Fragment identifier
Replies: 3
Views: 56

Re: Fragment identifier

Which web server framework, if any, are you using? And how do you request the image?
by SpotlightKid
Sat Nov 18, 2017 11:08 am
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 159

Re: Noggin: A simple web framework that will run on your esp8266 boards.

I wonder wether it would be possible to create a general compatibility wrapper script for micropython on unix, which mimics the import behaviour of the bare metal ports...
by SpotlightKid
Sat Nov 18, 2017 11:00 am
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 22
Views: 302

Re: Compile error on Android Armv7l with Clang

@stijn @jickster: thanks for the tips!
by SpotlightKid
Fri Nov 17, 2017 7:36 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 22
Views: 302

Re: Compile error on Android Armv7l with Clang

Unfortunately, it's not so easy. Two of the functions in "py/nlrthumb.c" with inline assembler have C statements, which are apparently there just to placate GCC. I tried guarding them with #if defined(__GNUC__) && !defined(__clang__) but the function "nlr_thumb" also has more C statements at the beg...
by SpotlightKid
Fri Nov 17, 2017 7:22 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 159

Re: Noggin: A simple web framework that will run on your esp8266 boards.

Not so much different modules, but the standard modules have - unfortunately - slight API differences, e.g. in signatures, where the number or types of arguments differ. The point in case here is the usocket module, where on the esp8266 and the wipy (I think), the socket functions, which take an add...
by SpotlightKid
Thu Nov 16, 2017 7:04 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 159

Re: Noggin: A simple web framework that will run on your esp8266 boards.

I was playing around a bit with noggin under the unix port. Here are a few observations/tips: 1. You need to install the "socket" module from micropython-lib: micropyrthon -u upip micropython-socket (The usocket module from the unix port does not support passing addresses as (host, port) tuples, so ...
by SpotlightKid
Wed Nov 15, 2017 11:43 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 159

Re: Noggin: A simple web framework that will run on your esp8266 boards.

flask.Response is just a thin wrapper for werkzeug.Response and doesn't override its init Method, so the comment I linked to in the API docs also applies to Flask: the mime_type argument gets special treatment for 'text/*' types, where the charset is appended. Your code doesn't do that. https://git...
by SpotlightKid
Wed Nov 15, 2017 11:21 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 159

Re: Noggin: A simple web framework that will run on your esp8266 boards.

Seems very nice an clean! A minor comment: instead of 'mimetype' I think 'content_type' (e.g. as a Response kwarg) would be more appropriate, given the example set by other similar APIs, since you're sending the value unmodified as the "Content-type" header: http://werkzeug.pocoo.org/docs/0.12/wrapp...
by SpotlightKid
Wed Nov 15, 2017 11:09 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 22
Views: 302

Re: Compile error on Android Armv7l with Clang

The point is that the C instructions in the naked functions aren't really necessary, don't really make sense, and are just there to (probably) silence GCC warnings. They should probably be guarded if #ifdefs.
by SpotlightKid
Wed Nov 15, 2017 11:06 pm
Forum: Hardware Projects
Topic: Pyboard based GSM phone.
Replies: 6
Views: 244

Re: Pyboard based GSM phone.

This project was also highlighted in one of the Python newsletters I have subscribed too. Very impressive!