Giter Club home page Giter Club logo

spring-integration-mqtt-demo's Introduction

spring-integration-mqtt-demo

使用 spring-integration 实现 MQTT 协议的发送和接收

安装教程

  1. 例子里的MQTT服务器选用的是EMQX官方提供免费的在线MQTT 5服务器, 参考:https://www.emqx.com/zh/mqtt/public-mqtt5-broker

相关知识点

消息服务质量
  • QoS 0:消息最多传递 1 次,如果当时客户端不可用,则会丢失该消息。
  • QoS 1:消息传递至少 1 次。
  • QoS 2:消息仅传送 1 次。
主题层级

储备知识:主题名和主题过滤器是大小写敏感的,以前置或后置斜杠 / 区分。

  1. 多层通配符#,表示它的父级和任意数量的子层级。 例如:如果客户端订阅主题 sport/tennis/player1/#,它会收到使用下列主题名发布的消息:

    • sport/tennis/player1
    • sport/tennis/player1/ranking
    • sport/tennis/player1/score/wimbledon
  2. 单层通配符+, 例如:sport/tennis/+ 匹配 sport/tennis/player1 和 sport/tennis/player2 ,但是不匹配 sport/tennis/player1/ranking。

spring-integration-mqtt-demo's People

Contributors

gaohan-cmd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.