Chat freely about anything...

User avatar
By CaptainJester
#57303 I bought this http://www.dx.com/p/open-smart-usb-to-e ... ule-444697 ESP-01 with a USB adapter to experiment with. I haven't been able to get very far yet because I am failing to get it to connect to my WiFi. I started with Kolban's book https://leanpub.com/ESP8266_ESP32 and used the AT commands to try and connect. Then I found http://fab.cba.mit.edu/classes/863.14/t ... lwifi.html which pointed to a GitHub repository https://github.com/guyz/pyesp8266. In that repository the esp8266test.py file had the following commands:

Code: Select allAT
AT+CWMODE=1
AT+RST
AT+CWLAP
AT+CWJAP="ssid","pwd"
AT+CIFSR

After entering the CWJAP command to connect I get back
Code: Select allWIFI DISCONNECT
+CWJAP:1

FAIL

I have also tried to set CWMODE to 3 and connect but that didn't work.

I am trying this with Putty on Windows 10 and my WiFi router is only about 10-15 feet away. Is there something else I am missing?
User avatar
By icons
#61162 how are you powering esp8266? If you have everything plugged into your computer then it will likely not work because there is not enough power from the computer to supply the esp8266 01. Especially if you are turning on wifi :? Try plugging the dongle with esp8266 into a wall adapter (like a usb phone charger with at least 1amps) and then test if possible.
User avatar
By icons
#61163 I am observing the same behavior when using this adapter with it plugged directly into computer, however after uploading a sketch I then plug the adapter with esp8266 into a 5v usb wall plugin and everything works well. So my assumptions are that this adapter provides barely enough power to load a sketch to your esp8266 but when time comes to connect wifi (which requires a lot more power) nothing happens.

I can load a blink sketch on esp8266 01 with this adapter and it works from a pc usb but when using anything with wifi it doesnt. Hope this helps.