Hi @Sander van de Velde | MVP ,
At first really thanks for your help, with your suggestion I am building something like a POC that I will show to my team in the next days.
Starting from that we will manage a complete solution with proper checks and so on.
I'm facing up a little problem. I'm sorry if what I'm about to write may seem stupid to you but, as I told, I'm new to this world XD.
In the past days I compiled two diffent C program (my final goal is to implement alla the methods in an unique solution), one performing pub method and the second performing sub method.
The first one is used to send telemetry data from device to IoT Hub, the second one is used to receive message from the could.
the current scenario is this: every 10 seconds I launch the pub method and send data to the cloud, once a minute instead I invoke the sub method and check if any messages have been sent from the cloud to the device.
In this situation I very often miss the message going from the cloud to the device.
On the other hand, if I only invoke the sub method, without using the C program that implements the pub method, every message arrives without a problem. In this condition, as you suggested, even if I send a message when the device is turned off, once it is turned on it manages to detect the message.
My conclusion is that by opening and closing the connection somehow I compromise the status of the message I sent previously.
I don't know if I made myself clear, do you have any thoughts on this?
0 Votes0 · More