擅长:python、mysql、java
<p>您可以尝试在路由查询中使用<code>$connectionDeviceId = "{your device id}"</code>。<code>connectionDeviceId</code>由IoT集线器标记在服务绑定消息上。我认为这比沉默的建议更简单。消息系统属性以“$”符号作为前缀。有关消息路由<a href="https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-query-language#get-started-with-device-to-cloud-message-routes-query-expressions" rel="nofollow noreferrer">here</a>的更多查询语言。</p>