需要使用模块名称为消息添加前缀 [英] need to prefix messages with module name

查看:58
本文介绍了需要使用模块名称为消息添加前缀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向IOT集线器发送消息时,它将来源作为物联网测试设备名称。


但我在天蓝色门户网站上配置的IOT测试设备中有2个模块。


如何将原点修改为模块名称而不是设备姓名?



谢谢

解决方案

你好,


你能更好地澄清你想要实现的目标吗?如果目的是路由消息,请参阅:


https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-routing-query-syntax#system-properties


" 如  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:

https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-routing-query-syntax#system-properties

"As described in the IoT Hub Messages, there are additional system properties in a message. In addition to contentTypecontentEncoding, and enqueuedTime, the connectionDeviceId and connectionModuleId can also be queried."


这篇关于需要使用模块名称为消息添加前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆