auto_subscribe {
topics = [
{
topic = "c/${clientid}"
},
{
topic = "client/${clientid}/username/${username}/host/${host}/port/${port}"
qos = 1
rh = 0
rap = 0
nl = 0
}
]
}
自动订阅,可以对 ${clientid}进行拆分吗,在配置文件里,比如拆除拆成productKey和deviceName,topic = “c/${clientid}” → topic = “c/${productKey}/${deviceName}”
${clientid}=${productKey}#${deviceName},如何用这则表达式拆分