adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from
https://learn.adafruit.com/adafruit-gfx-graphics-library
Other
2.37k stars 1.54k forks source link

ESP32 unable to initialize wifi. (serial monitor show connecting........) #158

Closed amjrazman closed 6 years ago

amjrazman commented 6 years ago

Hi .

Im using ESP32 for the module. I want to connect it with wifi. however , on serial monitor it shows (connecting .............................) till forever. I wait for hours tho i believe it will connect somehow. Anyway im using MacBook Pro, run with El Capitan OSX.

Below is the code:


`#include char ssid = "ooooooooo"; const char password = "xxxxxxxxxx"; WiFiServer server(80);

/MLX90614 Sensor /

include

include

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() { Serial.begin(115200); delay(10); Serial.println("Adafruit MLX90614 test");
//pinMode(21,INPUT) //adc1_config_width(ADC_WIDTH_10Bit); // adc1_config_channel_atten(ADC1_CHANNEL_5,ADC_ATTEN_11db); // duration=1000*10; //time1=0; mlx.begin();

connectWiFi(); }

void loop() { WiFiLocalWebPageCtrl(); / Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC()); Serial.print("C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("C"); Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF()); Serial.print("F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");

Serial.println(); delay(500); */ }

/***

/***

pljakobs commented 6 years ago

this is the issues page for the Adafruit-GFX-library. Your code does not even include that library, so I'm pretty certain that you're asking the wrong people.

kind regards

pj

deadbaed commented 6 years ago

yeah, it's not an issue with the GFX-library, you must have a problem with your ESP32.

make sure your wifi network is up and running, and restart your esp a bunch of times if it doesnt connect -- on my board the wifi works after 5 reboots or something.

good luck!

pljakobs commented 6 years ago

@ladyada I think this is a candidate for closing, too.

ladyada commented 6 years ago

thanks!