1
00:00:01,110 --> 00:00:08,850
In this lecture, I'm going to show you how to use the market in and around quiddity out nodes to interact

2
00:00:08,850 --> 00:00:17,020
with an empty goroka that is installed on the Raspberry Pi on which the note read server is also installed.

3
00:00:17,430 --> 00:00:24,990
So to do that, I am going to create or have created a new and quiddity example's flow.

4
00:00:25,320 --> 00:00:31,950
And then I'm also using McGinity box just to simulate communication with an external device like an

5
00:00:31,950 --> 00:00:32,900
E.S.P 32.

6
00:00:34,110 --> 00:00:37,980
So let's have a look at the node rate flow and.

7
00:00:39,510 --> 00:00:45,450
Have a look at the market, it in and out notes, these are the two notes that will be working with

8
00:00:45,450 --> 00:00:46,090
this section.

9
00:00:46,680 --> 00:00:53,340
I wanted to start with morbidity in and the idea is that I'm going to use my name and get it in books

10
00:00:53,340 --> 00:00:57,660
here to publish something to a sample topic.

11
00:00:57,930 --> 00:01:02,760
And then I want that to come over to the military in note.

12
00:01:02,770 --> 00:01:06,150
Then I'll print it out in a Dipak note.

13
00:01:06,690 --> 00:01:09,240
So here's my kitty in note.

14
00:01:09,330 --> 00:01:13,380
I will also grab a debug node and connect it.

15
00:01:14,940 --> 00:01:21,640
And then have a look inside and it in node to configure it already have a broker.

16
00:01:22,270 --> 00:01:27,180
I am going to actually reset it and start from scratch.

17
00:01:27,350 --> 00:01:28,440
I'm going to create a new.

18
00:01:28,440 --> 00:01:30,360
And it broke a client.

19
00:01:31,240 --> 00:01:31,550
Right.

20
00:01:31,610 --> 00:01:34,260
So add new entity broker.

21
00:01:34,890 --> 00:01:44,580
And I'm going to create a client using this properties tab let's call it and Kutty client.

22
00:01:45,960 --> 00:01:57,150
On node red, dot local, and this is going to be a broker that is on localhost.

23
00:02:00,070 --> 00:02:08,220
And I'm using the default port one eight eight three now, because we have set security credentials.

24
00:02:08,230 --> 00:02:15,430
And if you go into the security tab and I'm going to copy over my credentials for one of my users,

25
00:02:16,060 --> 00:02:17,500
I go for no red.

26
00:02:19,540 --> 00:02:21,370
And here's the password.

27
00:02:25,530 --> 00:02:27,540
And that's about it.

28
00:02:28,560 --> 00:02:32,790
We're going to have an auto generated client I.D., so it's all good.

29
00:02:32,820 --> 00:02:41,760
Click on ADD and then this note now in note has selected the appropriate Broca.

30
00:02:42,780 --> 00:02:47,700
And I'm going to subscribe to a topic let's call this topic.

31
00:02:50,550 --> 00:02:59,800
Take exploration's who'd read test for quality of service, Lisco for the simplest zero.

32
00:03:00,780 --> 00:03:04,010
I'm going to allow output to be able to detect it.

33
00:03:04,050 --> 00:03:06,720
There's a few options here, but let's keep it simple.

34
00:03:07,020 --> 00:03:13,860
And for the name of this, no, let's call it an KUTY in.

35
00:03:15,450 --> 00:03:21,190
All right, now for the debug node, I'm just going to print out the payload.

36
00:03:21,210 --> 00:03:29,910
Actually, I'm going to print out the complete message object and call this entity a misty object.

37
00:03:31,840 --> 00:03:42,010
OK, now let's deploy this simple flow and switch to the debug window and just want to get a text coming

38
00:03:42,010 --> 00:03:44,580
out of the local debug notes.

39
00:03:44,590 --> 00:03:48,900
So, Karen, let's go over to the box.

40
00:03:49,390 --> 00:03:59,080
I don't have any publishers here, so let's create a publisher right now in lychees, which I can see

41
00:03:59,080 --> 00:03:59,610
what I'm doing.

42
00:03:59,890 --> 00:04:00,220
All right.

43
00:04:00,230 --> 00:04:06,390
So the topic that I want to publish to is the same topic that this note is listening to.

44
00:04:06,400 --> 00:04:10,570
So I'm going to copy this over to that quality of services here.

45
00:04:10,900 --> 00:04:11,630
No problem.

46
00:04:11,650 --> 00:04:12,220
So.

47
00:04:13,620 --> 00:04:14,880
Let's publish something.

48
00:04:17,640 --> 00:04:18,810
Test string.

49
00:04:20,230 --> 00:04:30,370
And that came through here is the complete message object contains the topic and there's the Paillot

50
00:04:31,000 --> 00:04:36,430
for switch this to Paillard only deploy again.

51
00:04:37,060 --> 00:04:38,110
Stablish again.

52
00:04:40,390 --> 00:04:42,040
You see that the message is coming through.

53
00:04:43,120 --> 00:04:49,570
OK, easy now, let's do the same thing, but now going the opposite way around, I'm going to publish

54
00:04:49,570 --> 00:04:58,560
something using an quiddity out in this flow, and then we will set a subscriber in the box to get that

55
00:04:58,570 --> 00:05:01,230
message, capture it and short on the screen.
