WEBVTT - This file was automatically generated by VIMEO

0
00:00:08.300 --> 00:00:11.200
Welcome back guys to video number 4.4 and this video we're going

1
00:00:11.200 --> 00:00:15.700
 to sending the data to things speak Cloud using the esp32 Wi-Fi.

2
00:00:14.700 --> 00:00:17.600
 So let's get started with that. Okay

3
00:00:17.600 --> 00:00:20.500
 here I have login to my things speak

4
00:00:20.500 --> 00:00:23.500
 account and I already have a three channels

5
00:00:23.500 --> 00:00:25.200
 and I'm going to create a new channel, okay.

6
00:00:26.700 --> 00:00:28.000
So click on the new channel.

7
00:00:30.200 --> 00:00:34.600
and here we'll type the channel name asp30 to

8
00:00:35.600 --> 00:00:38.200
Wi-Fi okay, and this will be

9
00:00:38.200 --> 00:00:39.100
 our first field.

10
00:00:40.200 --> 00:00:40.900
You can say that.

11
00:00:41.700 --> 00:00:44.900
Testing or you can assign it just like temperature. Okay,

12
00:00:44.900 --> 00:00:47.700
 and we are good to go with that one

13
00:00:47.700 --> 00:00:49.100
 field save changes.

14
00:00:51.800 --> 00:00:54.700
And here we have a private view. Okay. So now

15
00:00:54.700 --> 00:00:57.400
 it's time to set up things for

16
00:00:57.400 --> 00:01:00.800
 the things we speak. So firstly click on the sketch include

17
00:01:00.800 --> 00:01:04.000
 library and click on the manage library because you need

18
00:01:03.100 --> 00:01:06.800
 to install the things speak library before

19
00:01:06.800 --> 00:01:08.600
 integrating anything.

20
00:01:09.500 --> 00:01:09.800
So

21
00:01:15.200 --> 00:01:16.500
type things speak

22
00:01:21.700 --> 00:01:24.200
and you will get the library by the math Works version

23
00:01:24.200 --> 00:01:27.500
 2.0.1 install and you

24
00:01:27.500 --> 00:01:31.400
 guys can install the version latest

25
00:01:30.400 --> 00:01:33.200
 version to get started with that Okay

26
00:01:33.200 --> 00:01:36.400
 now click on the file examples.

27
00:01:38.100 --> 00:01:41.300
And here we need to come to the things speak. So this

28
00:01:41.300 --> 00:01:44.400
 is the thing speak and they're divided

29
00:01:44.400 --> 00:01:47.500
 the examples according to the development board. So we have

30
00:01:47.500 --> 00:01:50.400
 a esp32 and if you are using esp8 trouble 6,

31
00:01:50.400 --> 00:01:53.500
 then you need to go to that. Okay, and if

32
00:01:53.500 --> 00:01:56.500
 you have amcare 1000 or I'm careful Wi-Fi 1010

33
00:01:56.500 --> 00:01:59.800
 then these are the separate chords. Okay. So

34
00:01:59.800 --> 00:02:02.300
 right now we want to write on a single

35
00:02:02.300 --> 00:02:04.900
 field. So just click on that example.

36
00:02:07.700 --> 00:02:11.500
And first of all remove that commands to

37
00:02:10.500 --> 00:02:13.900
 make your code smaller,

38
00:02:13.900 --> 00:02:16.300
 okay, and here we need to put the

39
00:02:16.300 --> 00:02:19.100
 wi-fi SSID. We already have

40
00:02:19.100 --> 00:02:19.400
 a

41
00:02:21.100 --> 00:02:22.700
maker SSID, okay.

42
00:02:24.800 --> 00:02:27.100
maker and areas or

43
00:02:27.100 --> 00:02:27.700
 Wi-Fi password

44
00:02:31.300 --> 00:02:34.500
and this is the secret Channel ID and the secret right?

45
00:02:34.500 --> 00:02:37.500
 API key. Okay from where we will get that

46
00:02:37.500 --> 00:02:41.400
 from we will get that channel ID. Okay, and

47
00:02:44.300 --> 00:02:47.900
Come back to that. This is the channel ID place paste here.

48
00:02:48.700 --> 00:02:50.100
and click on the

49
00:02:51.600 --> 00:02:52.500
API keys

50
00:02:53.200 --> 00:02:56.500
and here you will get the right API key, okay.

51
00:02:58.300 --> 00:02:58.900
and

52
00:02:59.600 --> 00:03:02.800
paste it here. Okay. Now we are good to go with that configuration. Now,

53
00:03:02.800 --> 00:03:05.400
 let's come back to the code. So as the Wi-Fi

54
00:03:05.400 --> 00:03:08.300
 secrets.h things speak dot

55
00:03:08.300 --> 00:03:11.200
 h, okay, and all the configuration are okay

56
00:03:11.200 --> 00:03:12.600
 and now

57
00:03:15.500 --> 00:03:18.200
It's opening the serial and if there is a no serial, it will

58
00:03:18.200 --> 00:03:21.600
 not work. Okay to make it workable. Just

59
00:03:21.600 --> 00:03:23.600
 remove that because

60
00:03:24.900 --> 00:03:27.600
Till you click on the serial monitor. It

61
00:03:27.600 --> 00:03:30.400
 will not start anything after a

62
00:03:30.400 --> 00:03:33.400
 Serial begin. It will initiate the Wi-Fi mod. Okay,

63
00:03:33.400 --> 00:03:36.800
 and then begin the thing speak and in

64
00:03:36.800 --> 00:03:40.300
 the loop it is connecting and sending

65
00:03:39.300 --> 00:03:42.200
 the data to my channel number. It is

66
00:03:42.200 --> 00:03:45.200
 a one one means field number one and here

67
00:03:45.200 --> 00:03:49.300
 is the number which could be anything from

68
00:03:48.300 --> 00:03:51.900
 0 to 9 and because it's getting incremented.

69
00:03:51.900 --> 00:03:54.100
 Okay, and if the value is greater than

70
00:03:54.100 --> 00:03:58.100
 I turned and it will start again from the zero. Okay, and after

71
00:03:57.100 --> 00:04:00.100
 20 seconds, it will send the data. The main

72
00:04:00.100 --> 00:04:03.700
 thing is that many Clyde Cloud providers are giving

73
00:04:03.700 --> 00:04:06.300
 you ability to send the data after every second but

74
00:04:06.300 --> 00:04:09.700
 the things speak is a free Cloud to visualize the

75
00:04:09.700 --> 00:04:12.800
 data. By the way. It is a good and used by

76
00:04:12.800 --> 00:04:15.400
 students is Searchers and professionals to log

77
00:04:15.400 --> 00:04:18.500
 the data to the things we Cloud because

78
00:04:18.500 --> 00:04:21.400
 they didn't charge anything from you guys, but they

79
00:04:21.400 --> 00:04:24.400
 have a limitation you can send the data after the interval

80
00:04:24.400 --> 00:04:24.600
 of

81
00:04:24.900 --> 00:04:27.200
Second you can't send the data

82
00:04:27.200 --> 00:04:30.100
 of one second or two second you need to

83
00:04:30.100 --> 00:04:34.600
 wait. So there is a good option that you can send the data to after

84
00:04:33.600 --> 00:04:36.500
 five minute because for example, if

85
00:04:36.500 --> 00:04:40.400
 you are developing a smart agriculture solution in my

86
00:04:40.400 --> 00:04:43.200
 previous project, we have a frequency of five minutes that

87
00:04:43.200 --> 00:04:46.200
 after five minutes Our advice will send the data to the things be

88
00:04:46.200 --> 00:04:49.200
 so it is a good option. However, many researchers are

89
00:04:49.200 --> 00:04:52.400
 using a two hour three hour delay time because these

90
00:04:52.400 --> 00:04:55.500
 things are not going to change frequently. So

91
00:04:55.500 --> 00:04:58.400
 this is our code and we're good to go with that. Now

92
00:04:58.400 --> 00:05:01.300
 we need to upload and see what will

93
00:05:01.300 --> 00:05:02.000
 happen there. Okay.

94
00:05:20.300 --> 00:05:21.900
Again, press the wood button.

95
00:05:22.500 --> 00:05:24.600
to put the esp32 into the

96
00:05:25.700 --> 00:05:26.600
downloading mod

97
00:05:29.200 --> 00:05:32.500
Now it's in downloading mode and the code has been uploaded.

98
00:05:34.600 --> 00:05:35.400
successfully

99
00:05:37.700 --> 00:05:40.300
And click on the serial monitor to view all

100
00:05:40.300 --> 00:05:40.700
 the stuff.

101
00:05:41.600 --> 00:05:44.800
Okay. Now it's connected to the Wi-Fi Channel updated successfully.

102
00:05:44.800 --> 00:05:47.400
 So come back my friend to

103
00:05:47.400 --> 00:05:50.200
 the private View and here we will get the reading

104
00:05:50.200 --> 00:05:53.900
 this is our first entry. Okay, and we

105
00:05:53.900 --> 00:05:55.600
 will wait for the 20 seconds.

106
00:05:56.400 --> 00:05:58.400
To get a new data.

107
00:06:01.100 --> 00:06:04.100
By the way from here, you will get all the updates. You see here the channel

108
00:06:04.100 --> 00:06:07.200
 one updated successfully and there's the one and after the

109
00:06:07.200 --> 00:06:09.100
 20 second. We will get another value.

110
00:06:21.500 --> 00:06:25.400
Channel One updated successfully, but why

111
00:06:24.400 --> 00:06:26.600
 it's not showing here. Yes.

112
00:06:28.100 --> 00:06:32.300
So this is the third value 0 1 2 and the values

113
00:06:31.300 --> 00:06:32.700
 are coming.

114
00:06:33.400 --> 00:06:35.500
After the delay of 20 seconds.

115
00:06:41.600 --> 00:06:44.800
I think there are some sort of network connectivity issue. Otherwise

116
00:06:44.800 --> 00:06:45.300
 it will.

117
00:06:46.100 --> 00:06:49.400
Display the data in a real time in the

118
00:06:49.400 --> 00:06:52.800
 values changes according to the data. So guys

119
00:06:52.800 --> 00:06:55.500
 this is the example where we

120
00:06:55.500 --> 00:06:59.300
 have centered the data from the esp32 board to things

121
00:06:59.300 --> 00:06:59.800
 Peak cloud.

122
00:07:00.500 --> 00:07:03.700
And in the next video, we are going to set up a Nash

123
00:07:03.700 --> 00:07:06.900
 Network, which is very important. For example, you are

124
00:07:06.900 --> 00:07:10.400
 deploying a smart agricultures monitoring system

125
00:07:10.400 --> 00:07:13.300
 and the field and you want to save the money

126
00:07:13.300 --> 00:07:16.400
 for the routers and you want to extend their

127
00:07:16.400 --> 00:07:19.400
 range. Then it is a good to go to set

128
00:07:19.400 --> 00:07:22.400
 up an esp32 Wi-Fi mesh Network

129
00:07:22.400 --> 00:07:25.200
 to get the data from the pnores and send to

130
00:07:25.200 --> 00:07:28.100
 the cloud wire one single note. So guys see you

131
00:07:28.100 --> 00:07:29.800
 next video. Have a good day, bye-bye.
