Search found 28 matches

by yeyeto2788
Wed Oct 03, 2018 12:17 pm
Forum: ESP8266 boards
Topic: Either network or requests module reboot the board
Replies: 0
Views: 380

Either network or requests module reboot the board

Hello guys, I have encounter a problem trying to make a script that just checks the price for bitcoins the code is the following: from console import Display import urequests import json import time #import gc oled = Display() def ConnectWifi(SSID, pwd): """ Function to connect to WIFI. Args: SSID: ...
by yeyeto2788
Tue Aug 14, 2018 6:02 pm
Forum: ESP8266 boards
Topic: unable to revert to main filesystem
Replies: 3
Views: 586

Re: unable to revert to main filesystem

I haven't tested yet but I guess that changing directory should work. Have you tried it? I reply to the post to see if that could help you out, my thoughts were that when you mount the SD card the current working directory would be the SD that's why I supposed that with os.chdir() would do the trick...
by yeyeto2788
Mon Aug 13, 2018 11:17 am
Forum: ESP8266 boards
Topic: How to delete a static IP?
Replies: 2
Views: 495

Re: How to delete a static IP?

Hello! You might want to retrieve the status before connecting to another AP. See documentation for retrieving it ( http://docs.micropython.org/en/latest/esp8266/library/network.html#network.wlan.status ) Should be something like this: sta.disconnect() #from the first AP if sta.status == "STAT_IDLE"...
by yeyeto2788
Mon Aug 13, 2018 11:06 am
Forum: ESP8266 boards
Topic: Unable to connect to ESP8266 via WIFI
Replies: 4
Views: 916

Re: Unable to connect to ESP8266 via WIFI

Hello, that is really weird, I have used the AP for one of my projects ( https://github.com/yeyeto2788/MicroPythonScripts/tree/master/MicroBoard ) and I have discovered an error that is being discussed in Github ( https://github.com/micropython/micropython/issues/3739 ). I have sent several requests...
by yeyeto2788
Mon Aug 13, 2018 10:59 am
Forum: ESP8266 boards
Topic: unable to revert to main filesystem
Replies: 3
Views: 586

Re: unable to revert to main filesystem

Have you tried something like this:

Code: Select all

os.chdir("/")
I guess that once you mount the filesystem if you do a `os.getcwd()` it will return the mounted volume (not sure).

I would just try that out to see if it works.

Regards.
by yeyeto2788
Mon Aug 13, 2018 10:39 am
Forum: ESP8266 boards
Topic: [SOLVED] import module from filesystem
Replies: 4
Views: 1035

Re: import module from filesystem

Wujuuuu! It worked like a charm :D .

Thank you very much for the help!

Regards.
by yeyeto2788
Mon Aug 13, 2018 10:39 am
Forum: ESP8266 boards
Topic: [SOLVED]cannot connect relay module
Replies: 7
Views: 1345

Re: cannot connect relay module

No problem! Glad you got it working. :D

You might consider changing the name of the Post adding a [SOLVED] at the beginning.

Regards.
by yeyeto2788
Mon Aug 13, 2018 10:37 am
Forum: ESP8266 boards
Topic: ESP sets up AP
Replies: 1
Views: 395

Re: ESP sets up AP

As it states on the Documentation http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/intro.html?highlight=access%20point#wifi After a fresh install and boot the device configures itself as a WiFi access point (AP) that you can connect to. The ESSID is of the form MicroPython-xxxxxx where...
by yeyeto2788
Wed Aug 08, 2018 7:46 pm
Forum: ESP8266 boards
Topic: [SOLVED]cannot connect relay module
Replies: 7
Views: 1345

Re: cannot connect relay module

Are you sure the relay is 3.3 volts compatible? Is it active low or active high? If it is active low try connecting it to GND directly. Also take into account that you should have all GND (relay and esp8266 GND) connected together. I don't really see anything wrong on the code side, so it might be h...
by yeyeto2788
Wed Aug 08, 2018 2:43 pm
Forum: ESP8266 boards
Topic: [SOLVED]cannot connect relay module
Replies: 7
Views: 1345

Re: cannot connect relay module

Try adding a delay between on and off to see if it's doing what is supposed to do. What could be happening is that the pin changes its state (from on to off and vice-versa) so quick that you might not be seeing the led to go off or hearing the relay being activated/deactivated. try something like th...