#include <WiFiClient.h>
Serial.write("Please enter name of your wifi network\n");while(Serial.available() == 0){};String Uid=Serial.readStringUntil('\n');Serial.write("Please enter password of your wifi network\n");while(Serial.available() == 0){};String pass= Serial.readStringUntil('\n');
WiFi.disconnect();delay(1000);WiFi.begin(Uid, pass); //begin WiFi connectionSerial.println("Started");unsigned long startedWaiting = millis();// Wait for connectionwhile (WiFi.status() != WL_CONNECTED && millis() - startedWaiting <= 25000){delay(500);Serial.print("*");}if(WiFi.status() != WL_CONNECTED){Serial.print("IP address: ");Serial.println(WiFi.localIP());}





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Journey to AWS Certified Solutions Architect — Associate

First view on moving from Python to Golang

Cross Account + Cross Region Lambda invocation

Writeup — E.Tree — Cyber Apocalypse 2021 — HackTheBox

If you are a beginner or an experienced developer, I am sure you can learn a

Using UUIDs to your Rails 6 application

The BarkisNetwork community is pleased to launch Refer-a-friend activity

Create Ethereum private network

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store



More from Medium

Auto muting when spotify plays an advertisement

Beginner’s Guide to ROS — Part 2 “Installation and First Run”

How to Install Active Directory for Beginners (Windows Server 2019)

Install Nextcloud Ubuntu 20.04