-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LeafDeviceId is not present in the messages which are routed to custom module. #4689
Comments
Hi @rajaggrawal, What you are saying is that if we have an edge device named "MyEdgeDevice" and a leaf device "MyLeafDevice", then after the management suite received the routed message, the value of the COnnectionDeviceId is "MyEdgeDevice" (instead of the expected "MyLeafDevice"? Can you give me an edgeHub version number, and also that which protocol (amqp or mqtt) you are using? Also, can you try if you change the protocol (e.g. form amqp to mqtt), does this behavior change? (I am talking about the protocol between edgeHub and the leafdevice and between edgeHub and the management-suite, and not the protocol between edgeHub and IoTHub) - the protocol you set in the code of your device/module |
Yes the value of the COnnectionDeviceId is "MyEdgeDevice" (instead of the expected "MyLeafDevice")
sudo iotedge --version I am using MQTT, will test with aqmp and update. |
tried using AMQP as well but still not worked. I have used following tag/release of edgeHub and edgeAgent |
We are blocked due to this. |
@rajaggrawal Hello, Sorry for the delay. The code deliberately changes the source for twin change notifications, actually this was a bug before not changing it (and caused other problems before the fix.) Here is the commit for 1.1 in case you want to take a look: this also means that if you need the origin of the twin notification (vs the connected device that actually sends the message out, in this case edgeHub), today the only way to accomplish that if you include it in the reported properties. I understand how it looks awkward and I am sorry that I cannot advise something more "out-of-box". Let me know if you need help obtaining the device name to make your code dynamic (vs hardcode it) |
@vipeller |
@rajaggrawal no, unfortunately no better way at this moment. We have opened a ticket to fix it, but I am afraid that it is not going to help you short term. |
…4762) Issue: EdgeHub supports routing twin change notifications, which basically includes routing RP updates to other modules. The message that gets routed should have information about the device that sent the RP update. But because of a recent change in EH, this information got dropped. #4689 Fix: Fix is to route the information about the device/module that sent the RP update to the receiving module.
…zure#4762) Issue: EdgeHub supports routing twin change notifications, which basically includes routing RP updates to other modules. The message that gets routed should have information about the device that sent the RP update. But because of a recent change in EH, this information got dropped. Azure#4689 Fix: Fix is to route the information about the device/module that sent the RP update to the receiving module.
(#4888) Cherry-pick: fa60e52 Issue: EdgeHub supports routing twin change notifications, which basically includes routing RP updates to other modules. The message that gets routed should have information about the device that sent the RP update. But because of a recent change in EH, this information got dropped. #4689 Fix: Fix is to route the information about the device/module that sent the RP update to the receiving module.
This issue is being marked as stale because it has been open for 30 days with no activity. |
…ure#4762 (Azure#4888) Cherry-pick: Azure@fa60e52 Issue: EdgeHub supports routing twin change notifications, which basically includes routing RP updates to other modules. The message that gets routed should have information about the device that sent the RP update. But because of a recent change in EH, this information got dropped. Azure#4689 Fix: Fix is to route the information about the device/module that sent the RP update to the receiving module.
…ure#4762 (Azure#4888) Cherry-pick: Azure@fa60e52 Issue: EdgeHub supports routing twin change notifications, which basically includes routing RP updates to other modules. The message that gets routed should have information about the device that sent the RP update. But because of a recent change in EH, this information got dropped. Azure#4689 Fix: Fix is to route the information about the device/module that sent the RP update to the receiving module.
Hi,
I am running iotedge as transparent gateway and successfully connected my leaf-device with iotedge.
I have deployed a custom module(management-suite) at iotedge and have added following route to receive reported property of leafDevice and i am able to receive it.
FROM /twinChangeNotifications INTO BrokeredEndpoint("/modules/management-suite/inputs/input1")
Issue :
twinChangeNotifications received at custom module (management-suite) does not have leafDeviceId present in the message.
How will my iotedge module know which device sent twinChangeNotifications ?
We are blocked due to this, could you please check this on priority ?
Note : I tried to fetch ConnectionDeviceId from message, but it gives edge-device-id. I did not find any way to get leaf deviceId.
Adding leaf-deviceId in each reported property does not make sense.
The text was updated successfully, but these errors were encountered: