c++ mqtt客户端_MQTT应用环境搭建及测试(带程序)

首先了解一下什么是MQTT

MQTT stands for MQ Telemetry Transport. It is a publish/subscribe, extremely simple and lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. The design principles are to minimise network bandwidth and device resource requirements whilst also attempting to ensure reliability and some degree of assurance of delivery. These principles also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or “Internet of Things” world of connected devices, and for mobile applications where bandwidth and battery power are at a premium.
(MQTT代表消息队列遥测传输。它是一种发布/订阅、极其简单和轻量级的消息传递协议,专为受约束设备和低带宽、高延迟或不可靠的网络而设计。设计原则是尽量减少网络带宽和设备资源需求,同时努力确保可靠性和一定程度的交付保证。这些原则也使得该协议成为新兴互联设备"机器对机器"(M2M)或"物联网"世界的理想,以及带宽和电池电量处于优势的移动应用。)

那么通过以上描述,我们就不难看出这种技术的应用领域。因想要了解一下相关协议,就阅读了官网相关资料,并想要通过自己搭建MQTT服务器进行测试。那么先来说说相关测试环境。

软件测试环境:

1. 操作系统:虚拟机 Ubuntu 16.04.4-desktop

2. MQTT服务器:Apache-Apollo-1.7.1

3. 浏览器:Google

4. MQTT客户端:MQTTLens

5. JAVA(JDK)

第一 Ubuntu 虚拟机安装

具体安装步骤不再累述,请自行百度。

第二 MQTT服务器搭建

1) 下载Apache-Apollo-1.7.1,网址:http://www.apache.org/dyn/closer.cgi?path=activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz

554e34aa7874b143373c2ac47366c423.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值