I am an absolute newbie to ESP8266. I have a Wemos D1 Mini obtained from Amazon. Regular sketches seems to work well (eg. LED blink). But the moment I start uploading wifi sketches, the sketch gets uploaded but in the serial monitor there is no indication of a successful wifi connection. It initially prints some junk and subsequently just says connecting to SSID... and is in an endless loop. I am wondering if I am missing anything here. Baud rates are matched up in device manager, sketch and serial monitor, all libraries and dependencies are installed. In my opinion, everything has been done correctly upto this point. I am stumped.
Here is a link to a screen capture image of my serial monitor.
Below is an explanation of the constant values that I could find for wifi status and using this to map out to the image from the serial monitor, it looks like it is WL_Disconnected was asserted initially and then followed by WL_NO_SSID_AVAIL.
Has anybody encountered a similar problem to this? Kindly help me out as I am stranded at this point.
WL_NO_SHIELD = 255, // for compatibility with WiFi Shield library
WL_IDLE_STATUS = 0,
WL_NO_SSID_AVAIL = 1,
WL_SCAN_COMPLETED = 2,
WL_CONNECTED = 3,
WL_CONNECT_FAILED = 4,
WL_CONNECTION_LOST = 5,
WL_DISCONNECTED = 6