当前位置:网站首页>MQTT服务器搭建以及使用MQTT.fx测试
MQTT服务器搭建以及使用MQTT.fx测试
2022-07-29 05:26:00 【Never Done777】
MQTT是一个基于客户端-服务器的消息发布/订阅传输协议。MQTT协议是轻量、简单、开放和易于实现的,这些特点使它适用范围非常广泛。在很多情况下,包括受限的环境中,如:机器与机器(M2M)通信和物联网(IoT)。其在,通过卫星链路通信传感器、偶尔拨号的医疗设备、智能家居、及一些小型化设备中已广泛使用。
MQTT服务器搭建:
目前MQTT代理的主流平台有下面几个:
Mosquitto:https://mosquitto.org/
VerneMQ:https://vernemq.com/
EMQTT:http://emqtt.io/
一: 接下来使用 Mosquitto 在win10系统下搭建mqtt服务器(简约版):
1)本人下载到自检的E盘 然安装路径为:E:/cccc/mosquitto 记住这个路径(自己的)
2:打开win10 终端 因为安装文件路径为E:/cccc/mosquitto 所以先到这个位置
启动代理端 :mosquitto -d -v
二 测试
方法一再打开俩个终端
1) . 终端一 订阅主题为test的消息 输入:mosquitto_sub -d -v -t test
2)在另一个终端发布一条主题为test,消息内容为hellomqtt的消息
指令为:mosquitto_pub -d -t test -m “hellomqtt never done”
3)订阅端查看
三:用MQTT.fx软件测试
下载地址:Index of /apps/mqttfx/1.7.1
1)打开软件看到
2)
3)订阅起名字:
4)
5)
6)
边栏推荐
- Design and simulation code of 4-bit subtracter based on FPGA
- Network Security Learning (II)
- Common server faults and their solutions
- Conversion of fixed-point number to floating-point number of vivado IP core
- Hongke will share the EtherCAT demo for you and teach you how to quickly transition from other protocols to EtherCAT industrial bus
- Complex floating point division of vivado IP core floating point
- 【面试题】2022年最新软件测试面试题(400道)【附带答案】持续更新...
- day12_ Multithreading
- Sequence list and linked list
- Vivado IP核之定点数转为浮点数Floating-point
猜你喜欢
day02_ Basic grammar
华为交换机CE12808导入导出配置文件
What are the advantages of software testing? See how much you know
Network Security Learning (II)
day10_ Exception handling & enumeration
day03_1_流程控制
Complex floating point multiplication of vivado IP core floating point
day09_static&final&代码块&抽象类&接口&内部类
Merkle Tree 存在性功能第一次修改
Hongke automation SoftPLC | modk operation environment and construction steps (1) -- Introduction to operation environment
随机推荐
UDP套接口通信实验
day17_ Under collection
基于TCP的在线词典
Design of IIR filter based on FPGA
Right value reference and mobile construction
Verilog中for语句的使用
day03_ 1_ Process control
Joint use skills of joiner.on and stream().Map
HOG+SVM实现行人检测
TCP套接口通信实验
On defect description style
服务器常见故障及其解决方法
Advanced socket programming (options and control information)
Is it OK to directly compare the size of two numbers in FPGA?
九、 组网技术
三、广域通信网
Multiple IO usage
Merkletree builds QT implementation UI
自动化测试的生命周期是什么?
DDoS攻击与CC攻击的区别