Hello, guys, and welcome back.
Now we are going, as always, whenever we want to test something, we start with the very basics.
In our case, we want to test messaging with See You and the broker.
And the easiest way to test this is by blinking an led on our not MCU if the communication is successful.
So first, we're going to create the user interface and the node or at the back end we're going to configure
it in order to communicate with the broker.
And in the next lecture, we're going to program the node MCU so that it can provide information and
also be linked to the broker.
So let us get started.
The first thing I want to do is I want to, but it makes sense that I have an on and off button.
So this is my first, but I'm going to double click on it and I'm going to click on ADD and new UI group,
click on this modify and I'm going to call this not MCU.
Underscore control.
OK, I'm just going to click and it's important to have a group right here, we can just name it whatever
we want.
No, what should they label this?
Let's say the first button is going to set the on the state so that we can turn on our lead on our not
MCU.
And now the payload, we're going percent, let's say in order to turn this on, I want to send the
payload to.
So I'm sending a message which contains do in order to turn on something on my note and see, you know,
we're going to learn how we can decode this payload however we want.
Now we need to choose a topic.
Remember topic of the encapsulation of the message and we need to name it.
Let's say that this is called Internal Leidy.
This is the topic.
OK, and we're going to click on the.
That's it for the ombudsman.
So for the off button, we're going to do the same.
We were going to choose not MCU control as a group.
I'm going to name it off in order to turn it off.
I'm going to send payload of one.
So the message contains only number one and the topic is the same internal led.
And I'm going to click on them.
All right.
Now, I have two buttons that they are trying to subscribe to to a certain topic.
Right.
No, what I want to do is I want to send em Kutty, so since we have installed the library for that
already, we're going to drag this ambiguity in and we are going to connect.
Sorry, not this security.
This is an important duty.
This is not what we are looking for.
We need an output executed and we're going to link them like that.
Link the UN and the Gulf.
So that if we press on this ambiguity about what is going to be executed, if we click off also the
same old will be executed.
No ambiguity.
Most important thing is to create a server.
In order to do that, just click on add in your broker or add a new and broker and click on edit.
No, the server of the localhost in our case is going to be our hive MQ.
We have created a MACU account so that we can link to this broker and the server address is Broecker.
Pollsmoor, small letters broker Dot Hive and Q dot com and report is one eight eight three.
OK, now we're going to leave the protocol as ambiguity three point one point one.
That's totally fine line.
The idea will be empty.
Now we're going to go to security now in security.
I need to use the password and the username I have used here.
So if I go back to empty and and click on back cluster's clusters, I'm going to see an account right
now.
If I click on manage clusters, click on Access Management, you'll see that you have created a username
and password.
You can create another one if you want.
But for me, I'm going to use what I have created.
So I'm going to go back to now dread.
This is my username and type the password that you have used.
Now, name it whatever you want, let's call this the You Dimmy and Cutie Underscore Broecker, you
can call it whatever we want.
It doesn't really matter.
Click on ADD, and here we go.
So far, so good.
Now to which topic is this going to be?
Subscribing.
Well, the topic name is simply can be taken from here.
We have already said we are going to connect to the Internet, so I'm going to go here and I'm going
to say, hey, the topic I'm going to be sending to is internal led, OK?
So far, so good.
Now, that's amazing.
How about we see how the user interface is now looking like?
Now, as I said, whenever you use anything from Dashboard, any of these options, you're going to
see it placed simply in the gooey of the UI.
In order to do that, just click on this dropdown, click on dashboard and simply click on this icon
right here.
This is it, this is my control, this is my office, and it's ready.
To subscribe to my topic, No.
In order to test if the connection is working with the server, we click on deploy here.
And as you can see, you get a status of connected no, let's see that I gave the wrong address.
Let's say that I added some letter at the end of the comment and I click on update done, click on deploy.
You'll see that it is disconnected because the name of the server is not correct.
So in order to check if your connection is healthy, you just click on deploy and see the status here.
Let us correct this.
Freedom of the air.
And how about we change the security, let's say if we change the user name, will we be able still
to connect or not?
Click on update done.
Deploy it is connected.
Why?
Well, because here what we're are going to connect to is actually only the server without the username.
So it is actually working without user username because we are only testing the connection with the
server.
So don't be concerned if you change the password or the username and you get it connected to you, you're
still doing the right thing.
OK, so now we are from the guey Videojet infrastructure for this very simple application.
How about now?
In the next lecture we jump to the not MCU point of view.