WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.600 --> 00:00:10.500
Welcome back guys to video number 7.3 where we're

1
00:00:10.500 --> 00:00:13.500
 going to test how the mqtt broker

2
00:00:13.500 --> 00:00:16.400
 works. So let's get started with that. If

3
00:00:16.400 --> 00:00:19.300
 you see there right now, you will see there's a zero

4
00:00:19.300 --> 00:00:22.900
 connection zero topics zero subscription for that.

5
00:00:22.900 --> 00:00:25.200
 I have just opened up

6
00:00:25.200 --> 00:00:28.500
 three different Terminals and here we

7
00:00:28.500 --> 00:00:31.500
 will type the most keto underscore sub. This

8
00:00:31.500 --> 00:00:34.500
 is for the subscription. Ah, come on minus H

9
00:00:34.500 --> 00:00:37.300
 where we specify the host right now. We

10
00:00:37.300 --> 00:00:40.600
 have a local host. But if you have installed that broker

11
00:00:40.600 --> 00:00:43.200
 on VPS or a Cloud Server, then you

12
00:00:43.200 --> 00:00:46.800
 will put the IP here and the next is minus P

13
00:00:46.800 --> 00:00:50.000
 Port by default. It's sport is 1883

14
00:00:49.700 --> 00:00:52.300
 for the TCP. Okay,

15
00:00:52.300 --> 00:00:56.300
 and there are some different ports for web sockets

16
00:00:55.300 --> 00:00:59.200
 and the SSL which will discuss in

17
00:00:58.200 --> 00:01:01.100
 the later in that video. Okay, and the next

18
00:01:01.100 --> 00:01:04.400
 thing is minus the topic and for that Home

19
00:01:04.400 --> 00:01:07.400
 Room 1 and this is the temperature.

20
00:01:07.600 --> 00:01:10.000
Here and we are good to go with that. Okay.

21
00:01:11.200 --> 00:01:14.500
And next we need to assign a subscribe

22
00:01:14.500 --> 00:01:15.500
 to another topic.

23
00:01:16.100 --> 00:01:18.700
localhost minus P1

24
00:01:19.800 --> 00:01:20.100
Sorry.

25
00:01:20.900 --> 00:01:24.400
One eight eight three minus t /

26
00:01:23.400 --> 00:01:26.800
 ohm / Room 1 Room

27
00:01:26.800 --> 00:01:28.600
 2 and temperature, okay.

28
00:01:29.700 --> 00:01:32.500
And we're good to go with that. And this is the our Pub. For

29
00:01:32.500 --> 00:01:35.800
 example, you can say that this is the dashboard. This is another dashboard

30
00:01:35.800 --> 00:01:38.200
 and this is the device where from that

31
00:01:38.200 --> 00:01:43.900
 we're going to send the data and for the public message. We

32
00:01:43.900 --> 00:01:46.100
 need to use the mosquito underscore Pub.

33
00:01:46.700 --> 00:01:52.100
Minus H, Local Host minus p1883 minus

34
00:01:51.100 --> 00:01:54.500
 t topic slash.

35
00:01:54.500 --> 00:01:57.800
 Ohm slash Room 1 slash temperature.

36
00:01:58.800 --> 00:02:01.300
Sorry, you need to make the same spelling.

37
00:02:03.200 --> 00:02:06.300
And if my message, okay, and I'm

38
00:02:06.300 --> 00:02:07.800
 going to drive the 18.

39
00:02:09.200 --> 00:02:13.000
Okay, we're good to go with that and you will see there 18 is

40
00:02:12.100 --> 00:02:15.600
 there and if we visit the

41
00:02:15.600 --> 00:02:19.000
 dashboard then you will see the control connections to topics to

42
00:02:18.500 --> 00:02:21.800
 subscriptions. Okay and below are

43
00:02:21.800 --> 00:02:25.000
 the complete details that incoming messages outgoing messages

44
00:02:24.700 --> 00:02:27.000
 dropped and some of the stuff these are the

45
00:02:27.600 --> 00:02:30.300
 subscriptions. These are the topics. This is

46
00:02:30.300 --> 00:02:33.500
 the stuff that actually emqx is providing

47
00:02:33.500 --> 00:02:36.500
 for the real-time monitoring of the Matrix and how

48
00:02:36.500 --> 00:02:37.800
 your broker is going on.

49
00:02:38.600 --> 00:02:42.200
How much topics are subscribed how

50
00:02:41.200 --> 00:02:45.400
 many connections are connected to the broker and

51
00:02:44.400 --> 00:02:47.200
 how the things are going

52
00:02:47.200 --> 00:02:50.900
 on and it will help you to Monitor and

53
00:02:50.900 --> 00:02:53.600
 optimize or increase your resources according

54
00:02:53.600 --> 00:02:56.900
 to your requirements on the cloud. If you are using AWS or

55
00:02:56.900 --> 00:02:59.700
 Azure, you can increase your

56
00:02:59.700 --> 00:03:03.100
 Cloud resources on the base of these statistics

57
00:03:02.100 --> 00:03:05.200
 and decrease the resources if you

58
00:03:05.200 --> 00:03:05.700
 have a

59
00:03:06.400 --> 00:03:09.900
Less load it will make your

60
00:03:09.900 --> 00:03:11.600
 cost effective.

61
00:03:12.200 --> 00:03:16.900
So now it's time to send the message to room two.

62
00:03:18.200 --> 00:03:19.400
So I'm just going to change the

63
00:03:20.800 --> 00:03:23.100
value here to okay 20

64
00:03:25.200 --> 00:03:28.700
and now you will see the message came here in that window not

65
00:03:28.700 --> 00:03:32.700
 to that window. So how the

66
00:03:32.700 --> 00:03:35.600
 sub and the pub works. I explained

67
00:03:35.600 --> 00:03:38.700
 to you with the commands and here are

68
00:03:38.700 --> 00:03:41.100
 the complete details which shows you that this is the new

69
00:03:41.100 --> 00:03:43.800
 message came here. Okay. Now what if we

70
00:03:45.100 --> 00:03:48.200
Verify it with the wild cards. So I need to

71
00:03:48.200 --> 00:03:51.900
 make another command prompt open here and

72
00:03:51.900 --> 00:03:53.200
 make it to resize.

73
00:03:53.800 --> 00:03:54.000
to

74
00:04:04.300 --> 00:04:05.400
yes, and

75
00:04:14.100 --> 00:04:18.000
CLS and mosquito underscore sub

76
00:04:17.400 --> 00:04:20.400
 minus H Local Host minus

77
00:04:20.400 --> 00:04:24.000
 P 183 minus t

78
00:04:23.100 --> 00:04:26.100
 slash home and I'm

79
00:04:26.100 --> 00:04:29.300
 going to use the plus wild card to monitor the both room.

80
00:04:29.900 --> 00:04:32.400
Temperature. Okay, and now

81
00:04:32.400 --> 00:04:35.000
 one by one, I will again type the command.

82
00:04:36.700 --> 00:04:39.100
And you see here the message came here and the

83
00:04:39.100 --> 00:04:42.600
 message came here. Okay, and same if

84
00:04:42.600 --> 00:04:44.000
 I choose here 18.

85
00:04:44.800 --> 00:04:47.600
It come here 18 and it also comes here 18.

86
00:04:47.600 --> 00:04:50.700
 Okay. So this is the plus wild

87
00:04:50.700 --> 00:04:53.200
 card. But if you have a multiple topics here, then

88
00:04:53.200 --> 00:04:54.900
 you can use the hashtag.

89
00:04:55.700 --> 00:04:58.500
So guys in this video we have just tested

90
00:04:58.500 --> 00:05:01.300
 how mqtt aescore sob

91
00:05:01.300 --> 00:05:04.400
 and how I'm Katrina. Let's go pop works and in the next video, we're

92
00:05:04.400 --> 00:05:07.900
 going to talk about how to use mqtt web-based client

93
00:05:07.900 --> 00:05:10.700
 and the desktop always client softwares

94
00:05:10.700 --> 00:05:14.000
 for the testing and debugging the data from

95
00:05:13.700 --> 00:05:16.100
 devices and to worry for all

96
00:05:16.100 --> 00:05:18.400
 the stuff. So I see you in the next video. Have a good day, bye-bye.
