Search found 52 matches

by eradicatore
Thu Jul 20, 2017 11:42 am
Forum: ESP8266 boards
Topic: Credentials sticking around?
Replies: 7
Views: 7132

Re: Credentials sticking around?

Thanks for the reply. Yea, I guess I sort of expected that, and of course most of the time we want that! Is there a "factory reset" type of operation for esp8266? I will go look on google. Anyway, what I have here is working for me to reset. Thanks again! I can't say enough about how much I love uPy...
by eradicatore
Thu Jul 20, 2017 3:02 am
Forum: ESP8266 boards
Topic: Credentials sticking around?
Replies: 7
Views: 7132

Re: Credentials sticking around?

Ok, so I may have worked around it with this code snipped. Before I added the active false and active true calls right before the last while loop, it would sit in the while loop even though I had set the ssid/pass to blank strings. But seems maybe after you do that take it down and back up and it wi...
by eradicatore
Thu Jul 20, 2017 1:50 am
Forum: ESP8266 boards
Topic: Credentials sticking around?
Replies: 7
Views: 7132

Credentials sticking around?

Hi, I have a sort of weird question. So I am using a file "creds" on the nodemcu to store my wifi ssid and password. I have a case where I do os.remove() of that file on boot up if a button is pressed down, and I see that the file does get removed, but it also seems that then the wifi connection/cre...
by eradicatore
Fri Jul 07, 2017 9:05 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 73045

Re: uPyLoader - simple file transfer and communication

So what is your version number of Python? You mentioned using python3, but oddly from this site it seems that JSONDecodeError should exist for python three: https://www.peterbe.com/plog/jsondecodeerror-in-requests.get.json-python-2-and-3 Let me raise the issue on github for uPyLoader and discuss the...
by eradicatore
Fri Jul 07, 2017 5:30 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 73045

Re: uPyLoader - simple file transfer and communication

Well I'm remote on my phone so can't test but if you want try to do this:

sudo pip install simplejson

And then change that import to simplejson:

from simplejson import JSONDecodeError
by eradicatore
Fri Jul 07, 2017 3:54 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 73045

Re: uPyLoader - simple file transfer and communication

I'm not sure why you can't import that module. You might want to just start up a python REPL prompt (just type "python3" or "python") and then when you get the >>> prompt try typing: from json import JSONDecodeError That's the line that's breaking for you. Maybe also try "import json" at the python ...
by eradicatore
Sun Jun 25, 2017 11:36 pm
Forum: ESP8266 boards
Topic: How to tell ram/rom usage?
Replies: 4
Views: 12075

Re: How to tell ram/rom usage?

Ok, read up (https://bytes.com/topic/python/answers/ ... mory-usage and others) and I think it's better to just call the full import:

import machine

instead of:

from machine import UART
by eradicatore
Sun Jun 25, 2017 11:12 pm
Forum: ESP8266 boards
Topic: How to tell ram/rom usage?
Replies: 4
Views: 12075

Re: How to tell ram/rom usage?

df() (disk-free) shows free file space, free() shows available ram. Thanks so much @devnull This seems to work great, I'll start keeping an eye on things and see how they change over development of my project. At one point I did crash just outright when I was importing modules, so I started cleanin...
by eradicatore
Fri Jun 23, 2017 6:18 pm
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 4131

Re: nodemcu starting to act funny...

Sure, thanks. I'm going to give it a go to use docker (https://github.com/dockcross/dockcross) to cross compile mpy-cross for windows and see if I can get an updated mpy-cross.exe that works for the latest firmware. I'm not familiar though with the "Pycom" version that roberthh has on his github htt...
by eradicatore
Fri Jun 23, 2017 11:27 am
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 4131

Re: nodemcu starting to act funny...

Maybe I should also mention I am using the cross compiler for windows called mpy-cross_pycom.exe. I actually just tried using the latest firmware based on your question, and now I get "imcompatible .mpy file"? Hmmmm