Search found 9 matches

by jrichard82
Wed Apr 29, 2020 8:03 pm
Forum: Programs, Libraries and Tools
Topic: featherweb
Replies: 5
Views: 4228

Re: featherweb

jumasheff: Made some changes to give the user more control over status, content-type and response headers. Now gives the default reason for most status codes...
by jrichard82
Mon Apr 27, 2020 5:38 pm
Forum: Programs, Libraries and Tools
Topic: featherweb
Replies: 5
Views: 4228

Re: featherweb

Wouldn't be too hard to check the status code in the default response and return the right thing for the handful of common cases (various 200's, 400's, or 500's. Probably wouldn't impact memory consumption... worthwhile?
by jrichard82
Mon Apr 27, 2020 5:13 pm
Forum: Programs, Libraries and Tools
Topic: featherweb
Replies: 5
Views: 4228

Re: featherweb

jumasheff: I am not familiar with the arduino http client. I am happy to change the library to accommodate a better default response. For my application its inconsequential. Are you giving the run call a callback? What does the callback return? If false or no return the default is to exit the handle...
by jrichard82
Thu Apr 16, 2020 4:10 pm
Forum: ESP32 boards
Topic: how install picoweb on ESP32?
Replies: 17
Views: 21618

Re: how install picoweb on ESP32?

Yes I agree, memory fragmentation is an issue as the 8266 runs low on memory.. The biggest problem I saw with pico was memory usage. Using a browser like Chrome, it will create "speculative" connections to the device that it doesn't use - and won't let go of them. Those connections are expensive. fe...
by jrichard82
Sat Apr 11, 2020 3:33 am
Forum: Programs, Libraries and Tools
Topic: featherweb
Replies: 5
Views: 4228

featherweb

I needed a lite weight web app framework for my project. I started with picoweb; however my device would frequently run out of memory and my apps would stop responding... assuming it was running out of memory. There was alot of memory churn going on and I am not really certain all of the details - s...
by jrichard82
Mon Mar 30, 2020 4:53 am
Forum: General Discussion and Questions
Topic: esp8266 calling out to micropython.org
Replies: 2
Views: 2011

Re: esp8266 calling out to micropython.org

jimmo, thanks for the response. I think you solved the mystery. I dug through the sources and the only place I saw that was hitting micropython was upip. I went back through my logs and the activity *may* have been associated with a upip install but I can't remember. I havent been seeing the activit...
by jrichard82
Sat Mar 28, 2020 6:10 pm
Forum: ESP32 boards
Topic: how install picoweb on ESP32?
Replies: 17
Views: 21618

Re: how install picoweb on ESP32?

import urequests response = urequests.get('https://raw.githubusercontent.com/pfalcon/picoweb/master/picoweb/__init__.py') with open('picoweb/__init__.py', mode='wb') as localfile: localfile.write(response.content) response = urequests.get('https://raw.githubusercontent.com/pfalcon/picoweb/master/pic...
by jrichard82
Sat Mar 28, 2020 5:11 pm
Forum: ESP32 boards
Topic: how install picoweb on ESP32?
Replies: 17
Views: 21618

Re: how install picoweb on ESP32?

One way to get Picoweb running is to manually create a picoweb directory on the filesystem (uos.mkdir('picoweb')), copy or use urequests to pull the sources in to that directory. Go to the github repo and pull the latest from master. You may want to upip install micropython-pkg_resources and micropy...
by jrichard82
Sat Mar 28, 2020 5:01 pm
Forum: General Discussion and Questions
Topic: esp8266 calling out to micropython.org
Replies: 2
Views: 2011

esp8266 calling out to micropython.org

I am seeing some strange behavior on my esp8266. At random hours the board (flashed with the latest version of MicroPython )is calling out to MicroPython.org and sending data to servers in Linode. What is the purpose of this? Is there and option to disable this?