Now we're going to propose a sketch that we will link to our Android app, so first we need to install
the right libraries here.
So we're going to go to tools and go to manage libraries.
And we're going to wait until the libraries here are updated and downloaded.
Then you are going to call a library called the Blink B.L. Y.
And Kay.
And we're going to see it right here, just click on install and let it install and choose the latest
version.
Which is.
The one point zero point zero don't use any of the Beatles, Beatles or try other versions that are
not really stable usually, and they are just releasing them for testing.
This is why install the one point zero point zero.
If there is a new library that was created and updated after you're seeing this video, it's fine as
well.
As long as they as long as the number is higher than one point zero point zero and and it has no beta
next to it.
No.
You have installed it close.
Let us add this library you're going to to include and you are going to write Blinkx Simple ESB and
please watch out for the capitalization of the letters then eight to six six.
The stage this is the library that we're going to at next here, we're going to add something called
authentication.
Now we have on our Android emulator an app that is called Blink and Blink is going to send you a talking
to your email address once you register.
This stock need to be added here in between these double quotations.
We will see how we can do that when we open the Android emulator and we installed the blink.
I'm going to show you how you can add this authentication.
But for now, let us just do that.
Let's leave it empty.
And I don't want to add anything at this point for now.
Now, there is one more instruction that I'm going to add, which is going to be right here.
And it's going to be Blinkx that begin.
This will initiate the blink object and this will let this library communicate with your Android device.
And finally, we just need to add one more line, which is called Blink.
That run.
And that's it.
This is enough in order to link our sketch right here, which is on our MCU into our Android app.
No, there is one more line that I want to add, which is activating any lead.
So I want to say here, digital, right.
LSD built in.
Which is, I believe, the PIN number 16, we can check that together in a minute.
Hi.
So whenever we upload the sketch, we're going to turn on the embedded lead on our Guinot MCU bus.
We're going to check the following.
We're going to write Not MCU built in.
Leidy's been No.
And we can see that for not MCU, it is GBI 016 now we're going to need to remember this in order to
control it from our Android app.
That's a great.
Now, in the next lecture, we're going to install the app.
We're going to fill in the authentication talking right here and we're going to test everything.