WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.900 --> 00:00:10.100
Welcome back guys to video number 4.3. And

1
00:00:10.100 --> 00:00:14.100
 in this video, why going to set up a hotspot and buy

2
00:00:13.100 --> 00:00:16.400
 a hotspot, we will connect our machine

3
00:00:16.400 --> 00:00:19.400
 our Windows machine and from the browser. We

4
00:00:19.400 --> 00:00:22.200
 will access the page where we have an option to turn on

5
00:00:22.200 --> 00:00:26.100
 and off an LED. So guys, let's get started with that. Okay.

6
00:00:27.600 --> 00:00:27.800
to

7
00:00:29.300 --> 00:00:33.100
get started with that click on file example and

8
00:00:32.100 --> 00:00:35.700
 Wi-Fi. Okay before

9
00:00:35.700 --> 00:00:38.600
 moving on firstly we need to select the development board.

10
00:00:38.600 --> 00:00:41.200
 We already have a do it esp32 dev kit

11
00:00:41.200 --> 00:00:44.800
 and on the com Port because it will only show the

12
00:00:44.800 --> 00:00:47.000
 examples according to the development board.

13
00:00:47.800 --> 00:00:49.600
So guys if we come here.

14
00:00:50.400 --> 00:00:53.400
And here you will see examples for the do it esp32 dev

15
00:00:53.400 --> 00:00:56.800
 kit. We won and come to the Wi-Fi and

16
00:00:56.800 --> 00:00:59.600
 in the Wi-Fi. We have a Wi-Fi access

17
00:00:59.600 --> 00:01:03.600
 point example, okay, and click

18
00:01:02.600 --> 00:01:04.000
 on that.

19
00:01:05.200 --> 00:01:08.900
and it will be the same because I already have opened that okay, and

20
00:01:08.900 --> 00:01:11.300
 here we have our SSID so

21
00:01:11.300 --> 00:01:14.100
 you can change it to according to your requirement like

22
00:01:15.500 --> 00:01:16.100
my

23
00:01:17.500 --> 00:01:21.400
ESP 32 LED and

24
00:01:21.400 --> 00:01:24.100
 the password will be same you can change it. No worries.

25
00:01:24.100 --> 00:01:27.200
 Okay, and the web server will listen on the port 80 but

26
00:01:27.200 --> 00:01:30.400
 you can also change it to the port 8080 but by

27
00:01:30.400 --> 00:01:33.200
 default is a good to go with that. Okay, and the next

28
00:01:33.200 --> 00:01:36.700
 we are enabling the built-in LED

29
00:01:36.700 --> 00:01:39.300
 pin mode to the output. So guys we can use

30
00:01:39.300 --> 00:01:39.500
 that.

31
00:01:40.400 --> 00:01:44.200
and the operations and the rest is Wi-Fi soft

32
00:01:43.200 --> 00:01:46.300
 AP and this is the SSID and

33
00:01:46.300 --> 00:01:49.400
 this is the password and it will initiate the excess point,

34
00:01:49.400 --> 00:01:50.000
 but this

35
00:01:51.100 --> 00:01:54.500
Method okay and here is the IP address because we

36
00:01:54.500 --> 00:01:57.300
 need to get the IP address. Why default by

37
00:01:57.300 --> 00:02:02.100
 the way, it's giving 192.168.4.1. Actually

38
00:02:00.100 --> 00:02:03.300
 we are not allowing and

39
00:02:03.300 --> 00:02:06.200
 that's why esp32 is a

40
00:02:06.200 --> 00:02:07.700
 signing that IP address to the

41
00:02:08.800 --> 00:02:09.800
access point, okay

42
00:02:10.800 --> 00:02:13.400
and next the server will be start and in

43
00:02:13.400 --> 00:02:16.700
 the loop, the system will wait Wi-Fi

44
00:02:16.700 --> 00:02:19.700
 client client is equal to the server dot available and If

45
00:02:19.700 --> 00:02:21.900
 client serial.print line and it will

46
00:02:22.800 --> 00:02:25.000
show you all the stuff for already.

47
00:02:26.200 --> 00:02:29.300
I have uploaded the code on the esp32 and you guys

48
00:02:29.300 --> 00:02:32.100
 can see here and for you guys. I will just

49
00:02:33.300 --> 00:02:36.300
Firstly I need to clear the output. Okay, and I will

50
00:02:36.300 --> 00:02:36.600
 just

51
00:02:37.700 --> 00:02:38.900
press the reset.

52
00:02:39.900 --> 00:02:40.400
button

53
00:02:46.500 --> 00:02:48.300
It's not working. Okay, no worries.

54
00:02:50.200 --> 00:02:52.500
Maybe there are some sort of glitch in that.

55
00:02:53.400 --> 00:02:57.400
and by the way, here is the browser 192.168.4.1 and

56
00:02:57.400 --> 00:02:58.300
 if I click on the

57
00:02:59.400 --> 00:03:03.400
yes, there's a one issue with that. Okay,

58
00:03:02.400 --> 00:03:05.700
 no worries. We will upload the code again.

59
00:03:06.700 --> 00:03:09.800
Yes, if you see here, there are some sort of delays and

60
00:03:09.800 --> 00:03:12.800
 here's the data new client connected and

61
00:03:12.800 --> 00:03:15.300
 there's a client request and if I click

62
00:03:15.300 --> 00:03:18.900
 you will see here the blue LED turned on

63
00:03:18.900 --> 00:03:21.800
 and if I click on the off and it will be off. So

64
00:03:21.800 --> 00:03:24.600
 there's some sort of glitch in the which takes

65
00:03:24.600 --> 00:03:27.500
 some time. That's why it's not showing all the stuff on

66
00:03:27.500 --> 00:03:30.600
 the time and if you see here there is a one another request here

67
00:03:30.600 --> 00:03:33.300
 client can comes and this is the URL h

68
00:03:33.300 --> 00:03:36.800
 means high and L means low. So

69
00:03:36.800 --> 00:03:39.300
 once again, we need to click on the

70
00:03:39.300 --> 00:03:42.300
 LED on and off you will see

71
00:03:42.300 --> 00:03:44.200
 here. Okay, and

72
00:03:45.100 --> 00:03:48.400
This is the working and for you guys. I need to upload the

73
00:03:48.400 --> 00:03:50.300
 code again. So you will get the idea.

74
00:04:06.200 --> 00:04:09.600
There is a bug in the esp32 when it starts connecting. Just press

75
00:04:09.600 --> 00:04:11.900
 on the boot Button. So will it move into the

76
00:04:12.800 --> 00:04:15.100
Download mode and start uploading the

77
00:04:15.100 --> 00:04:18.300
 code. If you will not press the boot Button on

78
00:04:18.300 --> 00:04:21.200
 the esp32. Then there will be error.

79
00:04:21.800 --> 00:04:24.100
So now code has been successfully uploaded to

80
00:04:24.100 --> 00:04:24.900
 the board and

81
00:04:26.400 --> 00:04:30.300
we need to verify our AP by clicking on that and

82
00:04:29.300 --> 00:04:33.100
 here we will get my esp32 LED.

83
00:04:32.100 --> 00:04:35.300
 Okay, and here we will put the password.

84
00:04:37.200 --> 00:04:38.700
your password

85
00:04:40.100 --> 00:04:41.900
and we are good to go with that.

86
00:04:59.300 --> 00:05:00.700
Just now we are connected with that.

87
00:05:01.400 --> 00:05:05.000
Try 192.168.4.1 and

88
00:05:04.400 --> 00:05:07.400
 we are good to go with that and if

89
00:05:07.400 --> 00:05:07.900
 we see here.

90
00:05:08.700 --> 00:05:10.500
Again, we will type it again.

91
00:05:11.500 --> 00:05:14.700
And yes the request. Is there click on the LED

92
00:05:14.700 --> 00:05:17.200
 on LED off and we

93
00:05:17.200 --> 00:05:18.400
 are good to go with that example.

94
00:05:20.200 --> 00:05:23.200
Okay guys in the next video. We're going to send the data

95
00:05:23.200 --> 00:05:26.600
 to think speak cloud from the esp32 using

96
00:05:26.600 --> 00:05:29.300
 the Wi-Fi. So I see you in the next video. Have a good day, bye-bye.
