Search found 28 matches
- Wed Oct 03, 2018 12:17 pm
- Forum: ESP8266 boards
- Topic: Either network or requests module reboot the board
- Replies: 0
- Views: 1410
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: ...
- Tue Aug 14, 2018 6:02 pm
- Forum: ESP8266 boards
- Topic: unable to revert to main filesystem
- Replies: 3
- Views: 2788
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...
- Mon Aug 13, 2018 11:17 am
- Forum: ESP8266 boards
- Topic: How to delete a static IP?
- Replies: 2
- Views: 2562
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"...
- Mon Aug 13, 2018 11:06 am
- Forum: ESP8266 boards
- Topic: Unable to connect to ESP8266 via WIFI
- Replies: 4
- Views: 3474
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...
- Mon Aug 13, 2018 10:59 am
- Forum: ESP8266 boards
- Topic: unable to revert to main filesystem
- Replies: 3
- Views: 2788
Re: unable to revert to main filesystem
Have you tried something like this:
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.
Code: Select all
os.chdir("/")
I would just try that out to see if it works.
Regards.
- Mon Aug 13, 2018 10:39 am
- Forum: ESP8266 boards
- Topic: [SOLVED] import module from filesystem
- Replies: 4
- Views: 6201
Re: import module from filesystem
Wujuuuu! It worked like a charm .
Thank you very much for the help!
Regards.
Thank you very much for the help!
Regards.
- Mon Aug 13, 2018 10:39 am
- Forum: ESP8266 boards
- Topic: [SOLVED]cannot connect relay module
- Replies: 7
- Views: 5771
Re: cannot connect relay module
No problem! Glad you got it working.
You might consider changing the name of the Post adding a [SOLVED] at the beginning.
Regards.
You might consider changing the name of the Post adding a [SOLVED] at the beginning.
Regards.
- Mon Aug 13, 2018 10:37 am
- Forum: ESP8266 boards
- Topic: ESP sets up AP
- Replies: 1
- Views: 1689
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...
- Wed Aug 08, 2018 7:46 pm
- Forum: ESP8266 boards
- Topic: [SOLVED]cannot connect relay module
- Replies: 7
- Views: 5771
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...
- Wed Aug 08, 2018 2:43 pm
- Forum: ESP8266 boards
- Topic: [SOLVED]cannot connect relay module
- Replies: 7
- Views: 5771
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...