MqttServerTopicWildcard 属性 |
获取或设置是否启用订阅主题通配符的功能,默认为 False
Gets or sets whether to enable the function of subscribing to the topic wildcard, the default is False
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool TopicWildcard { get; set; }
Public Property TopicWildcard As Boolean
Get
Set
public:
property bool TopicWildcard {
bool get ();
void set (bool value);
}
member TopicWildcard : bool with get, set
属性值
类型:
Boolean备注
启动之后,通配符示例:finance/stock/ibm/#; finance/+; '#' 是匹配所有主题,'+' 是匹配一级主题树。
通配符的规则参考如下的网址:http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html#appendix-a
参见