1
00:00:00,750 --> 00:00:02,790
Now, let's solve the coding process.

2
00:00:02,940 --> 00:00:08,310
It will be a long process because this code isn't just four or five lines.

3
00:00:08,580 --> 00:00:15,600
It's pretty long code, but I will explain each line and we will write it together and you will get

4
00:00:15,600 --> 00:00:21,270
to understand how everything works in this first example.

5
00:00:21,420 --> 00:00:27,990
We will use SPF 30 to as steep should said, using Wi-Fi Access Point mode.

6
00:00:30,570 --> 00:00:38,400
Well, going to demonstrate how to turn the B 32 into an access point and serve up what pages to any

7
00:00:38,400 --> 00:00:41,550
connected client to start with this.

8
00:00:41,760 --> 00:00:48,750
First, you need to plug your ISP through the toolbar and you need to run the Arduino software.

9
00:00:48,960 --> 00:00:56,370
We already explained how to download and install the software and how to get it to recognize your ISP

10
00:00:56,370 --> 00:00:56,700
borscht.

11
00:00:57,970 --> 00:00:58,390
Now.

12
00:01:04,260 --> 00:01:06,210
Start by creating new projects.

13
00:01:07,650 --> 00:01:11,160
Arduino, and let's save this project.

14
00:01:13,540 --> 00:01:17,820
Now, let's call it SPF 30 to webserver and click Save.

15
00:01:20,840 --> 00:01:29,030
Now we need to start by including the Wi-Fi Library because we are going to qualify connection so that

16
00:01:29,030 --> 00:01:32,420
include Wi-Fi.

17
00:01:37,420 --> 00:01:44,380
The techs now this library provides SPF 30, 32 specific Wi-Fi methods.

18
00:01:44,710 --> 00:01:48,530
We are calling to connect to a network for doing that.

19
00:01:48,550 --> 00:01:50,620
We also include the web server.

20
00:01:52,950 --> 00:01:54,570
Library includes.

21
00:02:00,860 --> 00:02:01,620
Out the Turks.

22
00:02:03,730 --> 00:02:04,240
Now.

23
00:02:05,350 --> 00:02:11,620
This library has some methods available that will help us setting up a server and handling incoming

24
00:02:11,770 --> 00:02:17,560
city requests without needing to worry about low-level implementation details.

25
00:02:19,020 --> 00:02:22,770
So these two libraries are essential in our coding process.

26
00:02:25,050 --> 00:02:28,320
And to make sure that everything is fine, you need to compile.

27
00:02:30,410 --> 00:02:33,740
Now, as you can see, the Sci-Fi is an organized.

28
00:02:35,180 --> 00:02:40,250
Now this needs to be capital, so again, verify.

29
00:02:44,780 --> 00:02:50,420
Now than compiling as we are sitting, they sb 32, an access point mode.

30
00:02:50,960 --> 00:02:52,850
It will create a lifetime network.

31
00:02:53,510 --> 00:02:56,480
Hence, we need to set it aside.

32
00:02:57,200 --> 00:03:02,390
Password, IP address, IP subnet mask and IP getaway.

33
00:03:02,960 --> 00:03:09,800
These are all information that we need to make sure that our ISP will act in Access Point Code.

34
00:03:10,790 --> 00:03:16,580
So let's get started by putting out a side light contest.

35
00:03:18,570 --> 00:03:19,230
Character.

36
00:03:21,710 --> 00:03:22,370
And.

37
00:03:26,990 --> 00:03:28,910
We will leave this, I will write it.

38
00:03:30,740 --> 00:03:37,700
We only finished recording process now consistent character again for the password.

39
00:03:42,090 --> 00:03:46,170
And we will leave this now after that.

40
00:03:46,440 --> 00:03:51,420
We need to put the IP address parameters, so IP address.

41
00:04:00,790 --> 00:04:01,950
Look, I'll I'll be.

42
00:04:05,800 --> 00:04:08,920
And you need to enter your local IP details.

43
00:04:09,250 --> 00:04:13,630
Usually the are one hundred ninety eight, one hundred sixty eight.

44
00:04:16,460 --> 00:04:18,260
And you need to add a comma between them.

45
00:04:21,590 --> 00:04:28,190
Next, you need to make that getaway things.

46
00:04:35,130 --> 00:04:39,330
And they are usually very similar to that of settings.

47
00:04:43,510 --> 00:04:50,080
Next, you will need to write your IP address, subnet mask.

48
00:04:56,330 --> 00:04:59,570
Now I will show you how you can give this information for your network.

49
00:05:06,800 --> 00:05:12,470
OK, now if you want to give this information so that you can fill them correctly, you need to go to

50
00:05:12,470 --> 00:05:20,030
the start menu and open up the PowerShell Windows PowerShell or you can simply like TMD.

51
00:05:21,560 --> 00:05:22,970
These both would work.

52
00:05:23,270 --> 00:05:27,710
Now, if you see M.D. start menu, see OM-D.

53
00:05:30,700 --> 00:05:38,410
Well, what you need to do is write I config while you are connecting to the wireless network, and

54
00:05:38,410 --> 00:05:42,490
from there you can see that we have this information.

55
00:05:44,010 --> 00:05:48,990
And from this information, we can get everything we want now here.

56
00:05:49,530 --> 00:05:58,710
I know that the subnet mask for my network is 255 255 times of 12 zero, just like this one.

57
00:06:00,750 --> 00:06:14,190
The default gateway is 190 to 168 01, so I would have to change this to 01 and link local IP address

58
00:06:14,400 --> 00:06:22,110
or the IP address for my computer is one hundred ninety two to two hundred sixty eight two zero, not

59
00:06:22,140 --> 00:06:23,090
one 07.

60
00:06:23,100 --> 00:06:31,380
So this has to be zero and we can't change this to 10 or any other IP address.

61
00:06:31,800 --> 00:06:38,700
This will be our ISP server IP address, so make sure that you choose an IP address that isn't used

62
00:06:38,700 --> 00:06:40,890
by any other device in your network.

63
00:06:42,030 --> 00:06:42,480
So.

64
00:06:43,890 --> 00:06:51,810
This is how you set these things up, and you can't compile your code to make sure that everything is

65
00:06:52,500 --> 00:06:54,150
fine and correct.

66
00:07:05,520 --> 00:07:11,880
Dan, compiling and the next lesson we are going to declare an object of the observer so that we can

67
00:07:11,880 --> 00:07:17,610
start calling our observer and start initiating controlled action.

68
00:07:18,000 --> 00:07:19,140
That's it for this lesson.

69
00:07:19,710 --> 00:07:23,460
What we did is we included the wife and Observer Library.

70
00:07:23,910 --> 00:07:33,300
We created the US-Saudi and password for our local Wi-Fi network, and we all signed the local IP gateway

71
00:07:33,360 --> 00:07:36,930
and subnet mask for our Wi-Fi network.

72
00:07:37,770 --> 00:07:42,930
Now, if you have any question about anything in this lecture, you can ask and you want airport.

73
00:07:43,140 --> 00:07:44,310
That's it for this lesson.

74
00:07:44,430 --> 00:07:47,070
This is us from educational engineering team.
