Welcome back guys to video number 4.4 and this video we're going
to sending the data to things speak Cloud using the esp32 Wi-Fi.
So let's get started with that. Okay
here I have login to my things speak
account and I already have a three channels
and I'm going to create a new channel, okay.
So click on the new channel.
and here we'll type the channel name asp30 to
Wi-Fi okay, and this will be
our first field.
You can say that.
Testing or you can assign it just like temperature. Okay,
and we are good to go with that one
field save changes.
And here we have a private view. Okay. So now
it's time to set up things for
the things we speak. So firstly click on the sketch include
library and click on the manage library because you need
to install the things speak library before
integrating anything.
So
type things speak
and you will get the library by the math Works version
2.0.1 install and you
guys can install the version latest
version to get started with that Okay
now click on the file examples.
And here we need to come to the things speak. So this
is the thing speak and they're divided
the examples according to the development board. So we have
a esp32 and if you are using esp8 trouble 6,
then you need to go to that. Okay, and if
you have amcare 1000 or I'm careful Wi-Fi 1010
then these are the separate chords. Okay. So
right now we want to write on a single
field. So just click on that example.
And first of all remove that commands to
make your code smaller,
okay, and here we need to put the
wi-fi SSID. We already have
a
maker SSID, okay.
maker and areas or
Wi-Fi password
and this is the secret Channel ID and the secret right?
API key. Okay from where we will get that
from we will get that channel ID. Okay, and
Come back to that. This is the channel ID place paste here.
and click on the
API keys
and here you will get the right API key, okay.
and
paste it here. Okay. Now we are good to go with that configuration. Now,
let's come back to the code. So as the Wi-Fi
secrets.h things speak dot
h, okay, and all the configuration are okay
and now
It's opening the serial and if there is a no serial, it will
not work. Okay to make it workable. Just
remove that because
Till you click on the serial monitor. It
will not start anything after a
Serial begin. It will initiate the Wi-Fi mod. Okay,
and then begin the thing speak and in
the loop it is connecting and sending
the data to my channel number. It is
a one one means field number one and here
is the number which could be anything from
0 to 9 and because it's getting incremented.
Okay, and if the value is greater than
I turned and it will start again from the zero. Okay, and after
20 seconds, it will send the data. The main
thing is that many Clyde Cloud providers are giving
you ability to send the data after every second but
the things speak is a free Cloud to visualize the
data. By the way. It is a good and used by
students is Searchers and professionals to log
the data to the things we Cloud because
they didn't charge anything from you guys, but they
have a limitation you can send the data after the interval
of
Second you can't send the data
of one second or two second you need to
wait. So there is a good option that you can send the data to after
five minute because for example, if
you are developing a smart agriculture solution in my
previous project, we have a frequency of five minutes that
after five minutes Our advice will send the data to the things be
so it is a good option. However, many researchers are
using a two hour three hour delay time because these
things are not going to change frequently. So
this is our code and we're good to go with that. Now
we need to upload and see what will
happen there. Okay.
Again, press the wood button.
to put the esp32 into the
downloading mod
Now it's in downloading mode and the code has been uploaded.
successfully
And click on the serial monitor to view all
the stuff.
Okay. Now it's connected to the Wi-Fi Channel updated successfully.
So come back my friend to
the private View and here we will get the reading
this is our first entry. Okay, and we
will wait for the 20 seconds.
To get a new data.
By the way from here, you will get all the updates. You see here the channel
one updated successfully and there's the one and after the
20 second. We will get another value.
Channel One updated successfully, but why
it's not showing here. Yes.
So this is the third value 0 1 2 and the values
are coming.
After the delay of 20 seconds.
I think there are some sort of network connectivity issue. Otherwise
it will.
Display the data in a real time in the
values changes according to the data. So guys
this is the example where we
have centered the data from the esp32 board to things
Peak cloud.
And in the next video, we are going to set up a Nash
Network, which is very important. For example, you are
deploying a smart agricultures monitoring system
and the field and you want to save the money
for the routers and you want to extend their
range. Then it is a good to go to set
up an esp32 Wi-Fi mesh Network
to get the data from the pnores and send to
the cloud wire one single note. So guys see you
next video. Have a good day, bye-bye.