Hello Dhanavath Vishnu,
Enabling and disabling modules is done using the device deployment manifest.
This manifest is only accessible in the cloud. So modules can only be started and stopped by sending a new deployment manifest.
Personally, it feels like you are going for a very complex solution.
There are a number of alternatives:
- Just try to call the logic on the modules (eg. it's running some service). If the call is not answered, the module is probably offline.
- Just keep the modules running and make the logic inside it dependable on usage. This makes your modules independent from deployment manifest changes in the cloud.
- Use the Prometheus functionality offered by the EdgeHub and EdgeAgent. These expose many metrics, including module-related metrics. This is also used by the MetricsCollector .
Please check out if this works for you.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.