Gianbacchio / ESP8266-TelegramBot

Telegram Bot Library for ESP8266 on Arduino IDE
GNU General Public License v2.0
187 stars 71 forks source link

WiFi not connecting (solved) #10

Open jngrt opened 7 years ago

jngrt commented 7 years ago

We had trouble connecting to wifi. Things worked only when we changed this

while (WiFi.begin(ssid, password) != WL_CONNECTED) {

to this

WiFi.begin(ssid);
while ( WiFi.status() != WL_CONNECTED) {

(Btw, we were using wifi without password)

Thanks for the code though, works great now! (Btw2 This message comes straight from Thingscon Amsterdam, we just did the Telegram Arduino MKR1000 workshop with Davide, and wanted to find out if we could get it to run on the ESP's which were handed out for free at the conference)

Gianbacchio commented 7 years ago

Hello!! nice to hear that this development still works fine! about the modification you did, I will improve the software consequently, thank you!

have a nice time best regards Giancarlo

2016-12-02 18:01 GMT+01:00 jngrt notifications@github.com:

We had trouble connecting to wifi. Things worked only when we changed this

while (WiFi.begin(ssid, password) != WL_CONNECTED) {

to this

WiFi.begin(ssid); while ( WiFi.status() != WL_CONNECTED) {

(Btw, we were using wifi without password)

Thanks for the code though, works great now! (Btw2 This message comes straight from Thingscon Amsterdam, we just did the Telegram Arduino MKR1000 workshop with Davide, and wanted to find out if we could get it to run on the ESP's which were handed out for free at the conference)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Gianbacchio/ESP8266-TelegramBot/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ALU0t-_zu0VK5g20Tf_KyNLmTbcAGJRoks5rEE7sgaJpZM4LCxNi .

-- Giancarlo Bacchio mob. +39 3313136813 skype: giancarlo_bacchio

edgiru commented 7 years ago

not connecting Connecting Wifi: mywifiname ..................................................................and so on to infinity

Gianbacchio commented 7 years ago

Hello Eduard, I understand that your sketch does not connect to internet. Basically, this is not a problem of the library. In the setup of the examples I used a connection method that normally works. You are free to change it with another that works with your internet connection / your modem...

Not connecting is a problem that I have also experienced with some routers, try to see if your esp connects with others.

regards Giancarlo

2016-12-14 19:16 GMT+01:00 Eduard notifications@github.com:

not connecting Connecting Wifi: mywifiname ..................................................................and so on to infinity

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Gianbacchio/ESP8266-TelegramBot/issues/10#issuecomment-267110615, or mute the thread https://github.com/notifications/unsubscribe-auth/ALU0t5kTODK3f4AQ_0I7nq-rSO2pVQe5ks5rIDJhgaJpZM4LCxNi .

-- Giancarlo Bacchio mob. +39 3313136813 skype: giancarlo_bacchio

sonicse commented 7 years ago

WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED)

works

edgiru commented 7 years ago

thanks to all, issues can be closed. Working.

amontefusco commented 7 years ago

Please, fix the code.