Skip to content

Commit

Permalink
✨ 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Feb 26, 2025
1 parent 0be447f commit 0081d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt/topic.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ order: 1

- [mqtt科普、mqttx、mica-mqtt的使用**视频**](https://www.bilibili.com/video/BV1wv4y1F7Av/)

## topic 通配符含义(订阅才可以使用通配符,发布不允许出现通配符)
## topic 通配符(订阅才可以使用通配符,发布不允许出现通配符)
- `/`:用来表示层次,比如 `a/b``a/b/c`
- `#`:表示匹配 `>=0` 个层次,比如 `a/#` 就匹配 `a/``a/b``a/b/c`。单独的一个 `#` 表示匹配所有。不允许 `a#``a/#/c`
- `+`:表示匹配一个层次,例如 `a/+` 匹配 `a/b``a/c`,不匹配 `a/b/c`。单独的一个 `+` 是允许的,`a+` 不允许,也可以和多层通配符一起使用,`+/tennis/# ``sport/+/player1` 都有有效的。
Expand Down

0 comments on commit 0081d0f

Please sign in to comment.