Now, let's solve the coding process.
It will be a long process because this code isn't just four or five lines.
It's pretty long code, but I will explain each line and we will write it together and you will get
to understand how everything works in this first example.
We will use SPF 30 to as steep should said, using Wi-Fi Access Point mode.
Well, going to demonstrate how to turn the B 32 into an access point and serve up what pages to any
connected client to start with this.
First, you need to plug your ISP through the toolbar and you need to run the Arduino software.
We already explained how to download and install the software and how to get it to recognize your ISP
borscht.
Now.
Start by creating new projects.
Arduino, and let's save this project.
Now, let's call it SPF 30 to webserver and click Save.
Now we need to start by including the Wi-Fi Library because we are going to qualify connection so that
include Wi-Fi.
The techs now this library provides SPF 30, 32 specific Wi-Fi methods.
We are calling to connect to a network for doing that.
We also include the web server.
Library includes.
Out the Turks.
Now.
This library has some methods available that will help us setting up a server and handling incoming
city requests without needing to worry about low-level implementation details.
So these two libraries are essential in our coding process.
And to make sure that everything is fine, you need to compile.
Now, as you can see, the Sci-Fi is an organized.
Now this needs to be capital, so again, verify.
Now than compiling as we are sitting, they sb 32, an access point mode.
It will create a lifetime network.
Hence, we need to set it aside.
Password, IP address, IP subnet mask and IP getaway.
These are all information that we need to make sure that our ISP will act in Access Point Code.
So let's get started by putting out a side light contest.
Character.
And.
We will leave this, I will write it.
We only finished recording process now consistent character again for the password.
And we will leave this now after that.
We need to put the IP address parameters, so IP address.
Look, I'll I'll be.
And you need to enter your local IP details.
Usually the are one hundred ninety eight, one hundred sixty eight.
And you need to add a comma between them.
Next, you need to make that getaway things.
And they are usually very similar to that of settings.
Next, you will need to write your IP address, subnet mask.
Now I will show you how you can give this information for your network.
OK, now if you want to give this information so that you can fill them correctly, you need to go to
the start menu and open up the PowerShell Windows PowerShell or you can simply like TMD.
These both would work.
Now, if you see M.D. start menu, see OM-D.
Well, what you need to do is write I config while you are connecting to the wireless network, and
from there you can see that we have this information.
And from this information, we can get everything we want now here.
I know that the subnet mask for my network is 255 255 times of 12 zero, just like this one.
The default gateway is 190 to 168 01, so I would have to change this to 01 and link local IP address
or the IP address for my computer is one hundred ninety two to two hundred sixty eight two zero, not
one 07.
So this has to be zero and we can't change this to 10 or any other IP address.
This will be our ISP server IP address, so make sure that you choose an IP address that isn't used
by any other device in your network.
So.
This is how you set these things up, and you can't compile your code to make sure that everything is
fine and correct.
Dan, compiling and the next lesson we are going to declare an object of the observer so that we can
start calling our observer and start initiating controlled action.
That's it for this lesson.
What we did is we included the wife and Observer Library.
We created the US-Saudi and password for our local Wi-Fi network, and we all signed the local IP gateway
and subnet mask for our Wi-Fi network.
Now, if you have any question about anything in this lecture, you can ask and you want airport.
That's it for this lesson.
This is us from educational engineering team.