需要使用模块名称为消息添加前缀 [英] need to prefix messages with module name
问题描述
当我向IOT集线器发送消息时,它将来源作为物联网测试设备名称。
但我在天蓝色门户网站上配置的IOT测试设备中有2个模块。
如何将原点修改为模块名称而不是设备姓名?
谢谢
你好,
你能更好地澄清你想要实现的目标吗?如果目的是路由消息,请参阅:
" 如 IoT
集线器消息 ,消息中还有其他系统属性。除了 contentType , contentEncoding ,
和 enqueuedTime ,
&nbs p; connectionDeviceId 和 connectionModuleId 也可以查询
。"
when i send a message to IOT hub, it gives origin as IOT test device name.
But I have 2 modules within an IOT test device configured on the azure portal.
How can I modify origin to be module name and not device name?
thanks
Hi,
Can you clarify better what you are trying to achieve? If the intent is to route messages see:
"As described in the IoT Hub Messages, there are additional system properties in a message. In addition to contentType, contentEncoding, and enqueuedTime, the connectionDeviceId and connectionModuleId can also be queried."
这篇关于需要使用模块名称为消息添加前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!