-->
Page 1 of 1

Having trouble connecting to wifi with NodeMCU

PostPosted: Tue Feb 13, 2018 2:22 pm
by jareddavidj
Hi everyone!
First post here and kind of a newb so I apologize in advance if I make any mistakes. So I'm making a data logger for a project on my college campus. I had it working perfectly at my house on my house wifi, but I can't get it to connect to my schools wifi. The wifi is open so no password necessary whereas my home wifi is WPA2. I'm attempting to use Adafruit IO to post data online. Everything was completely operational at home. One thing thats weird is I tried the code I found http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/connect-nodemcu-esp-12e-to-wifi-router-using-arduino-ide/ and it connected to the school wifi perfectly. I'm sort of at a loss now and would appreciate any help anybody could give me.

Re: Having trouble connecting to wifi with NodeMCU

PostPosted: Wed Feb 14, 2018 6:05 am
by btidey
If no password then you should be using

WiFi.begin(ssid);

or

WiFi.begin(ssid, NULL);

Re: Having trouble connecting to wifi with NodeMCU

PostPosted: Wed Feb 14, 2018 1:36 pm
by jareddavidj
btidey wrote:If no password then you should be using

WiFi.begin(ssid);

or

WiFi.begin(ssid, NULL);


The code I'm using has no place for WiFi.begin. It uses this:

Code: Select all#define WIFI_SSID       "GUEST"
#define WIFI_PASS       ""

#include "AdafruitIO_WiFi.h"
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);


I've just been entering and empty string for WIFI_PASS. I'm thinking now that it might be possible that it is having trouble connecting to Adafruit IO instead of having Wifi problems?