Search found 4 matches

by Matthew0x
Sun Apr 25, 2021 4:19 pm
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 9
Views: 4488

Re: Connecting to WiFi

Connecting to a wlan network can take a few seconds. That's why typically this is used: While not nic.isconnected(): time.sleep(1) I think that the problem in here would be the infinite loop. I for example want to print on my LCD info about the connected network. This way I could take my driver int...
by Matthew0x
Sun Apr 25, 2021 2:52 pm
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 9
Views: 4488

Re: Connecting to WiFi

I didn't notice the lack of brackets. Yes, indeed nic.active() returns then "True", and nic.status() returns "1". It also turns out that it needed more time:D nic.connect(SSID, PASSWD) sleep(10) #print(nic.scan() ) print(nic.isconnected()) print(nic.active()) print(nic.status()) now the nic.isconnec...
by Matthew0x
Sat Apr 24, 2021 9:53 pm
Forum: ESP8266 boards
Topic: Connecting to WiFi
Replies: 9
Views: 4488

Connecting to WiFi

Sorry for (if the previous was approved) post, I will remove the old one. Hello, I have been trying to connect my ESP8266 to my local networks. I assumed that in the end I succeeded, but something's wrong in here. I read the documentation: https://docs.micropython.org/en/latest/esp8266/quickref.html...
by Matthew0x
Sat Apr 24, 2021 9:01 pm
Forum: ESP8266 boards
Topic: A small edit to .connect() method
Replies: 1
Views: 1747

A small edit to .connect() method

Hello, preceding the questions - https://docs.micropython.org/en/latest/esp8266/quickref.html#networking I wanted to ask whether my code was wrong and if I was doing something wrong :mrgreen: The ESP8266 "wasn't" connecting to my home networks. It turns out I missed one of my own "debug" prints, pri...