MQTT-#通配符解釋
2023-03-30 15:58 作者:努力學(xué)習(xí)天天賺錢123456 | 我要投稿
一、en
The number sign (‘#’ U+0023) is a wildcard character that matches any number of levels within a topic.??
The multi-level wildcard represents the parent and any number of child levels. The multi-level wildcard??
character MUST be specified either on its own or following a topic level separator. In either case it MUST??
be the last character specified in the Topic Filter [MQTT-4.7.1-2].?
?
二、中文
多層通配符 Multi-level wildcard
數(shù)字標(biāo)志(‘#’ U+0023)是用于匹配主題中任意層級的通配符。多層通配符表示它的父級和任意數(shù)量的子層級。多層通配符必須位于它自己的層級或者跟在主題層級分隔符后面。不管哪種情況,它都必須是主題過濾器的最后一個字符 [MQTT-4.7.1-2]。
非規(guī)范評注
例如,如果客戶端訂閱主題 “sport/tennis/player1/#”,它會收到使用下列主題名發(fā)布的消息:
“sport/tennis/player1”
“sport/tennis/player1/ranking”
“sport/tennis/player1/score/wimbledon”

標(biāo)簽: