Hello @Syam Krishnanmanimalakalathilunnikrishnan(UST,IN) ,
It looks like you are configuring the Environment Variable correctly and that shouldn't be the issue...
What is the IoTHub Tier you are using? Do you receive any error at device side?
See: Reference - IoT Hub quotas and throttling
When the module stops sending messages, go and view the module logs in the portal - do you see any error? After that when you restart the module, are messages starting to be sent again?
Finally, have a look at Common Errors | Stability issues on smaller devices page.
"You may experience stability problems on resource constrained devices like the Raspberry Pi, especially when used as a gateway. Symptoms include out of memory exceptions in the IoT Edge hub module, downstream devices failing to connect, or the device failing to send telemetry messages after a few hours."
Go and set the environment variable OptimizeForPerformance
to false. Do you see any improvement?
Thanks!
Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.