1 00:00:00,750 --> 00:00:02,900 Now, let's solve the coding process. 2 00:00:02,940 --> 00:00:10,860 It will be a long process because this code isn't just four or five lines, it's a pretty long code. 3 00:00:10,860 --> 00:00:17,550 But I will explain each line and we will write it together and you will get to understand how everything 4 00:00:17,550 --> 00:00:18,000 works. 5 00:00:19,530 --> 00:00:28,050 In this first example, we will use SB 32 as FTB server using Wi-Fi access point mode. 6 00:00:30,570 --> 00:00:38,190 We are going to demonstrate how to turn the E.S.P 32 into an access point and serve up Web pages to 7 00:00:38,190 --> 00:00:41,580 any convicted client to start with this. 8 00:00:41,730 --> 00:00:48,760 First, you need to plug your ISP first to board, and you need to run the Arduino software. 9 00:00:48,930 --> 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,730 but. 11 00:00:57,960 --> 00:00:58,410 Now. 12 00:01:04,200 --> 00:01:06,260 Start by creating a new project. 13 00:01:07,440 --> 00:01:11,190 An Arduino and let's save this project. 14 00:01:13,530 --> 00:01:17,880 Now, let's call it E.S.P 32 Observer and click Save. 15 00:01:20,840 --> 00:01:28,240 Now, we need to start by including the wi fi library, because we are going to use Wi-Fi connection, 16 00:01:28,340 --> 00:01:32,450 so include Wi-Fi. 17 00:01:37,390 --> 00:01:46,420 The Turks now this library provides SPF 30 to specific Wi-Fi methods, we are calling to connect the 18 00:01:46,420 --> 00:01:46,980 network. 19 00:01:47,860 --> 00:01:50,650 Following that, we also include the Web server. 20 00:01:52,920 --> 00:01:54,630 Library occlude. 21 00:02:00,680 --> 00:02:04,460 Sarah, the now. 22 00:02:05,550 --> 00:02:11,850 This library has some methods available that will help us setting up a server and handling incoming 23 00:02:11,860 --> 00:02:17,790 ACTU requests without needing to worry about low level implementation details. 24 00:02:19,220 --> 00:02:23,020 So these two libraries are essential in our coding process. 25 00:02:25,200 --> 00:02:28,560 And to make sure that everything is fine, you need to compile. 26 00:02:30,650 --> 00:02:33,980 Now, as you can see, the elaborate isn't organized. 27 00:02:35,350 --> 00:02:40,480 Now, this needs to be capital, so again, verify. 28 00:02:44,960 --> 00:02:53,080 Now, Duncan Barling, as we are sitting VSP 32, an access point board, it will create a Wi-Fi network, 29 00:02:53,720 --> 00:03:02,580 hence we need to set it aside password, IP address, IP subnet mask and IP getaway. 30 00:03:03,170 --> 00:03:09,620 These are all information that we need to make sure that our ISP will act an access point. 31 00:03:10,970 --> 00:03:16,270 So let's get started by putting our ID right. 32 00:03:18,780 --> 00:03:19,470 Character. 33 00:03:21,880 --> 00:03:23,880 And ID, 34 00:03:27,190 --> 00:03:28,270 we will leave this. 35 00:03:28,300 --> 00:03:37,930 I will write it when we finish recording process now consistent character again for the password. 36 00:03:42,270 --> 00:03:51,660 And we will leave this now after that, we need the IP address parameters, so IP address. 37 00:04:01,080 --> 00:04:02,160 Local, I.B.. 38 00:04:05,950 --> 00:04:09,130 And you need to enter your local I.B. details. 39 00:04:09,460 --> 00:04:13,900 Usually there are one hundred ninety eight 168. 40 00:04:16,610 --> 00:04:18,500 And you need to add a comma between them. 41 00:04:21,790 --> 00:04:28,420 Next, you need to make the getaway sitting's. 42 00:04:35,280 --> 00:04:39,600 And they are usually very similar to that of sitting's. 43 00:04:43,690 --> 00:04:50,320 Next, you need to write your IP address, subnet mask. 44 00:04:56,510 --> 00:04:59,840 Now, I will show you how you can get this information for your network. 45 00:05:06,950 --> 00:05:12,530 OK, now, if you want to get this information so that you can fill them correctly, you need to go 46 00:05:12,530 --> 00:05:17,060 to the start menu and open up the outer shell. 47 00:05:17,060 --> 00:05:23,190 Honda's partial or you can simply to TMD these both Wallwork. 48 00:05:23,480 --> 00:05:27,950 Now, if you see Amde, stop when you see Amde. 49 00:05:30,880 --> 00:05:38,650 All what you need to do is right, I be config while you are connecting to the wireless network and 50 00:05:38,650 --> 00:05:42,730 from there you can see that we have this information. 51 00:05:44,190 --> 00:05:47,740 And from this information, we can get everything we want. 52 00:05:47,860 --> 00:05:58,950 Now, here I know that the subnet mask for my network is 255, 255, 255 zero, just like this one. 53 00:06:00,720 --> 00:06:07,180 And the default gateway is 190 to 168 01. 54 00:06:07,200 --> 00:06:17,520 So I would have to change this to zero one and link local IP address or the IP address for my computer 55 00:06:17,520 --> 00:06:23,310 is one hundred ninety two to two hundred sixty eight two zero dot one zero seven. 56 00:06:23,340 --> 00:06:28,530 So this has to be zero and we can change this to 10. 57 00:06:29,910 --> 00:06:35,330 Or any other IP address, this will be our ISP server IP address. 58 00:06:35,330 --> 00:06:41,090 So make sure that you choose an IP address that isn't used by any other device in your network. 59 00:06:42,210 --> 00:06:42,690 So. 60 00:06:44,090 --> 00:06:53,300 This is how you set these things up and you can combine your code to make sure that everything is fine 61 00:06:53,450 --> 00:06:54,400 and correct. 62 00:07:05,690 --> 00:07:12,110 Duncan Barling and the next lesson, we are going to declare an object of the observer so that we can 63 00:07:12,110 --> 00:07:17,850 start calling our observer and start initiating controlled action. 64 00:07:18,170 --> 00:07:19,360 That's it for this lesson. 65 00:07:19,910 --> 00:07:23,670 What we did is we included the Wi-Fi and observe our library. 66 00:07:24,110 --> 00:07:30,080 We created the A Society and password for our local Wi-Fi network. 67 00:07:30,380 --> 00:07:37,160 And we assigned the local IP gateway and subnet mask for our Wi-Fi network. 68 00:07:37,970 --> 00:07:43,120 Now, if you have a question about anything in this lecture, you can ask and that you aren't able. 69 00:07:43,310 --> 00:07:44,510 That's it for this lesson. 70 00:07:44,660 --> 00:07:47,300 This is aside from educational engineering team.