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 a 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 SB 32 as FTB server using Wi-Fi access point mode.
We are going to demonstrate how to turn the E.S.P 32 into an access point and serve up Web pages to
any convicted client to start with this.
First, you need to plug your ISP first to board, 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,
but.
Now.
Start by creating a new project.
An Arduino and let's save this project.
Now, let's call it E.S.P 32 Observer and click Save.
Now, we need to start by including the wi fi library, because we are going to use Wi-Fi connection,
so include Wi-Fi.
The Turks now this library provides SPF 30 to specific Wi-Fi methods, we are calling to connect the
network.
Following that, we also include the Web server.
Library occlude.
Sarah, the now.
This library has some methods available that will help us setting up a server and handling incoming
ACTU 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 elaborate isn't organized.
Now, this needs to be capital, so again, verify.
Now, Duncan Barling, as we are sitting VSP 32, an access point board, it will create a Wi-Fi 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 an access point.
So let's get started by putting our ID right.
Character.
And ID,
we will leave this.
I will write it when we finish recording process now consistent character again for the password.
And we will leave this now after that, we need the IP address parameters, so IP address.
Local, I.B..
And you need to enter your local I.B. details.
Usually there are one hundred ninety eight 168.
And you need to add a comma between them.
Next, you need to make the getaway sitting's.
And they are usually very similar to that of sitting's.
Next, you need to write your IP address, subnet mask.
Now, I will show you how you can get this information for your network.
OK, now, if you want to get this information so that you can fill them correctly, you need to go
to the start menu and open up the outer shell.
Honda's partial or you can simply to TMD these both Wallwork.
Now, if you see Amde, stop when you see Amde.
All what you need to do is right, I be 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, 255 zero, just like this one.
And the default gateway is 190 to 168 01.
So I would have to change this to zero one and link local IP address or the IP address for my computer
is one hundred ninety two to two hundred sixty eight two zero dot one zero seven.
So this has to be zero and we can 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 combine your code to make sure that everything is fine
and correct.
Duncan Barling 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 Wi-Fi and observe our library.
We created the A Society and password for our local Wi-Fi network.
And we assigned the local IP gateway and subnet mask for our Wi-Fi network.
Now, if you have a question about anything in this lecture, you can ask and that you aren't able.
That's it for this lesson.
This is aside from educational engineering team.