← Wireless iBeacon Receiver Main Page


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 Broker

测试MQTT Broker

我们使用免费软件 mosquittoopen in new window进行测试

cd c:\program files\mosquitto
  • 使用mosquitto的命令行工具可查看测试的上传数据
mosquitto_sub -h mqtt.bconimg.com -t "/beacons"
  • 使用命令行检查MQTT broker是否工作正常. 上一行命令执行后,顺利的话你会看到"Hello World"字样.
mosquitto_pub -h mqtt.bconimg.com -t "/beacons" -m "Hello World"

如何实现我自己的MQTT subscriber?

Last Updated:
Contributors: yanc