MQTT client JAVA 和 MQTT broker
来源:互联网 发布:鸡鸣狗吠,兄嫂当知之 编辑:程序博客网 时间:2024/05/20 14:42
Get the latest official version
Apollo 1.7.1
Release Notes | Installation Instructions | Documentation
Binaries for Unix/Linux/OS X:apache-apollo-1.7.1-unix-distro.tar.gzGPG SignatureBinaries for Windows:apache-apollo-1.7.1-windows-distro.zipGPG SignatureSource Code Distribution:apollo-project-1.7.1-source-release.tar.gzGPG Signature
Development Snapshot
Want to help stablize the latest and greatest nightly development build? Warnning: These builds are extremely bleeding edge!
These development builds are automatically tested and deployed by a Jenkins CI server:
- Checkin Build and Test Results
- Nightly SNAPSHOT deployment Results
Apollo 99-trunk-SNAPSHOT
Installation Instructions | Documentation
Binaries for Unix/Linux/OS X:apache-apollo-99-trunk-SNAPSHOT-unix-distro.tar.gzBinaries for Windows:apache-apollo-99-trunk-SNAPSHOT-windows-distro.zip
The development build source code should be directly checked out from our source code repository
MQTT client JAVA
A Java MQTT Client http://mqtt-client.fusesource.org/
MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
mqtt-client provides an ASL 2.0 licensed API to MQTT. It takes care of automatically reconnecting to your MQTT server and restoring your client session if any network failures occur. Applications can use a blocking API style, a futures based API, or a callback/continuations passing API style.
Using from Maven
Add the following to your maven pom.xml
file.
<dependency> <groupId>org.fusesource.mqtt-client</groupId> <artifactId>mqtt-client</artifactId> <version>1.12</version></dependency>
Using from Gradle
Add the following to your gradle file.
compile 'org.fusesource.mqtt-client:mqtt-client:1.12'
Using from any Other Build System
Download the uber jar file and add it to your build. The uber contains all the stripped down dependencies which the mqtt-client depends on from other projects.
Using on Java 1.4
We also provide an java 1.4 uber jar file which is compatible with Java 1.4 JVMs. This version of the jar does not support SSL connections since the SSLEngine class used to implement SSL on NIO was not introduced until Java 1.5.
Configuring the MQTT Connection
The blocking, future, and callback APIs all share the same connection setup. You create a new instance of the MQTT
class and configure it with connection and socket related options. At a minimum the setHost
method be called before attempting to connect.
MQTT mqtt = new MQTT();mqtt.setHost("localhost", 1883);// or mqtt.setHost("tcp://localhost:1883");
- MQTT client JAVA 和 MQTT broker
- MQTT broker and client
- MQTT 客户端JAVA代码 fusesource mqtt-client
- MQTT客户端JAVA代码----fusesource mqtt-client
- MQTT客户端JAVA代码----fusesource mqtt-client
- MQTT客户端JAVA代码----fusesource mqtt-client
- MQTT客户端JAVA代码----fusesource mqtt-client
- MQTT broker 集群部署
- MQTT服务器(Broker)列表
- Mqtt Broker部署方法
- MQTT协议之broker
- MQTT Server搭建(apache-apollo)和MQtt Client搭建
- MQTT Server搭建(apache-apollo)和MQtt Client搭建
- MQTT Server搭建(apache-apollo)和MQtt Client搭建
- MQTT Server搭建(apache-apollo)和MQtt Client搭建
- springboot实现mqtt broker启动
- MQTT:使用Mosquitto作为broker,SSL加密,附Java Demo
- mqtt
- 容器常用操作
- 6-JavaScript设计模式——工厂模式
- iOS开发 添加事件到系统日历
- 在Centos安装zookeeeper
- 单例模式
- MQTT client JAVA 和 MQTT broker
- mysql 学习
- Libevent学习-----Reactor的事件处理机制
- map
- realloc可能导致的内存泄露
- JVM 调优常用命令
- Selenium笔记 原理分析及其使用之一 webdriver
- 计算语言学之条件熵与联合熵、相对熵与交叉熵的应用
- 金蝶EAS,后台业务逻辑,SQL查询