WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.500 --> 00:00:10.600
Welcome back guys to video number 7.4. We're

1
00:00:10.600 --> 00:00:14.200
 going to talk about the web-based mqtt clients.

2
00:00:13.200 --> 00:00:15.900
 So let's get started with that.

3
00:00:16.900 --> 00:00:20.500
So here is mqtt.ron a

4
00:00:19.500 --> 00:00:22.400
 web-based mqtt client, which is developed by

5
00:00:22.400 --> 00:00:24.100
 me and

6
00:00:25.800 --> 00:00:28.400
to verify how it works through the

7
00:00:28.400 --> 00:00:31.300
 web-based because in the previous video we have

8
00:00:31.300 --> 00:00:34.700
 just explored all the stuff by

9
00:00:34.700 --> 00:00:37.300
 using command line terminal. So in

10
00:00:37.300 --> 00:00:38.900
 this video, we're going to test with the

11
00:00:39.600 --> 00:00:42.700
mqtt clients just type Here Local Host your

12
00:00:42.700 --> 00:00:43.100
 server name.

13
00:00:44.300 --> 00:00:47.300
Right now case we have a local list and for

14
00:00:47.300 --> 00:00:50.400
 the port number, we need to click on the configurations and

15
00:00:50.400 --> 00:00:54.000
 the listeners and here we have a different types of port for example

16
00:00:53.900 --> 00:00:56.100
 for the TCP that we have

17
00:00:56.100 --> 00:00:59.600
 used 1883 in the previous video. And if there is

18
00:00:59.600 --> 00:01:03.100
 a SSL then we need to use the 8883 port

19
00:01:02.100 --> 00:01:06.300
 number for the websocket. We have a 8083

20
00:01:05.300 --> 00:01:08.200
 and for the skew web

21
00:01:08.200 --> 00:01:11.000
 sockets we have a a284 right now.

22
00:01:11.200 --> 00:01:14.400
 We're going to use a 283 and here we need

23
00:01:14.400 --> 00:01:16.800
 to mention the topics / home /

24
00:01:17.500 --> 00:01:20.600
From one slash temperature. Okay,

25
00:01:20.600 --> 00:01:23.800
 and click on the connect and you

26
00:01:23.800 --> 00:01:24.000
 will see.

27
00:01:25.700 --> 00:01:28.600
the dashboards two connections to topics and

28
00:01:28.600 --> 00:01:30.200
 click on the listeners then when we have

29
00:01:31.500 --> 00:01:34.400
On the desktop using the terminal and

30
00:01:34.400 --> 00:01:37.400
 one is a web based. Okay now here we will.

31
00:01:39.300 --> 00:01:42.100
Type the messages to the room one, which is

32
00:01:42.100 --> 00:01:42.700
 18.

33
00:01:45.600 --> 00:01:48.700
And it will receive the

34
00:01:48.700 --> 00:01:52.700
 data 18. Okay, and for example, I

35
00:01:51.700 --> 00:01:54.600
 need to again resubscribe to

36
00:01:54.600 --> 00:01:56.600
 that topics control C.

37
00:02:00.900 --> 00:02:02.000
BLS and

38
00:02:07.100 --> 00:02:07.500
just

39
00:02:10.100 --> 00:02:13.400
Again, make it temperature. Okay, and now I'm sending the

40
00:02:13.400 --> 00:02:16.500
 data where the web based. Okay

41
00:02:16.500 --> 00:02:19.600
 19 and here you will see the 19 value

42
00:02:19.600 --> 00:02:23.300
 there. So this is the web-based if

43
00:02:23.300 --> 00:02:26.100
 you don't want to use the command line

44
00:02:26.100 --> 00:02:29.100
 interface, but we have another option which is the

45
00:02:31.300 --> 00:02:34.100
Just type the mqtt desktop.

46
00:02:36.100 --> 00:02:36.700
client

47
00:02:37.500 --> 00:02:40.600
and you will get the mqtt x dot app

48
00:02:40.600 --> 00:02:42.200
 which is a cross platform.

49
00:02:43.400 --> 00:02:46.100
Client you can use it on Windows Mac Linux and

50
00:02:46.100 --> 00:02:49.800
 121 provider. Awesome GUI to manage

51
00:02:49.800 --> 00:02:51.800
 all the stuff already. I have installed it.

52
00:02:52.600 --> 00:02:54.100
So I'm just going to

53
00:02:55.300 --> 00:02:57.500
run that app mqttx

54
00:02:59.200 --> 00:03:02.300
And here firstly we need to make a connection just click

55
00:03:02.300 --> 00:03:05.400
 on the plus button and type the name

56
00:03:05.400 --> 00:03:09.300
 local emqx broker.

57
00:03:09.900 --> 00:03:12.100
And leave the client name. Yeah, we are

58
00:03:12.100 --> 00:03:15.400
 going to use the mqtt and here we will type the

59
00:03:16.400 --> 00:03:19.300
local host and the port is 183 and

60
00:03:19.300 --> 00:03:22.600
 we didn't have any other stuff required here. Just click

61
00:03:22.600 --> 00:03:25.200
 on the connect and we're good to go with that. And if

62
00:03:25.200 --> 00:03:28.500
 you see here we have connected now, we need to subscribe to that topic.

63
00:03:29.300 --> 00:03:32.000
Who what is the topic on?

64
00:03:32.900 --> 00:03:36.100
Room one slash temperature, okay.

65
00:03:37.200 --> 00:03:40.700
And we're good to go with that and click on that to

66
00:03:40.700 --> 00:03:44.000
 type another topic Home Room to

67
00:03:43.000 --> 00:03:44.800
 slash.

68
00:03:45.500 --> 00:03:46.200
temperature

69
00:03:47.200 --> 00:03:50.300
And the confirm okay, and we need

70
00:03:50.300 --> 00:03:53.700
 to come back to that dashboard and see three

71
00:03:53.700 --> 00:03:56.800
 connections to topics and the force subscribers.

72
00:03:56.800 --> 00:03:59.300
 Okay now right now I'm going to send

73
00:03:59.300 --> 00:04:02.100
 that again 19 and in the app, we will see

74
00:04:02.100 --> 00:04:03.800
 here is the 19

75
00:04:04.600 --> 00:04:07.400
and for example if you want to send the

76
00:04:07.400 --> 00:04:07.700
 data.

77
00:04:08.600 --> 00:04:09.800
To that. Hello.

78
00:04:10.800 --> 00:04:13.300
The topic is required. Okay, we need to mention the

79
00:04:13.300 --> 00:04:14.700
 topic here home.

80
00:04:16.800 --> 00:04:19.100
room one temperature

81
00:04:21.300 --> 00:04:24.300
And just send it hello and we are good to go with that.

82
00:04:24.300 --> 00:04:27.500
 And here you will see here. This is so now from

83
00:04:27.500 --> 00:04:30.800
 that example. You understand that this is the bidirectional and

84
00:04:30.800 --> 00:04:33.600
 instant communication is happening. So in

85
00:04:33.600 --> 00:04:36.600
 this video, we have covered the web-based client and we

86
00:04:36.600 --> 00:04:39.300
 also covered the desktop client. If you are not

87
00:04:39.300 --> 00:04:42.300
 going to use the commands, but I will recommend you to understand

88
00:04:42.300 --> 00:04:45.900
 the commands because it will give you a good option to understand

89
00:04:45.900 --> 00:04:48.800
 how the process is working. What if

90
00:04:49.800 --> 00:04:52.400
You didn't remember or memorize

91
00:04:52.400 --> 00:04:55.400
 the commands then these tools are good to go with you guys. Okay,

92
00:04:55.400 --> 00:04:59.300
 so guys in the next video. We're going to send the data

93
00:04:58.300 --> 00:05:01.600
 from device to the cloud. So see

94
00:05:01.600 --> 00:05:02.900
 you in the next video. Have a good day. Bye.
