Hi team,
I am trying to read the DEVICE CONNECTION STATUS through REST API to implement a PLC switching condition and also to show the device status on my webpage. I have searched almost all the REST APIs which can support IoT Central. But sadly, I didn't find any of it. Can you please tell me there is a REST API that I missed?
When I tried to get it from the Azure CLI, then I am able to generate the Device Status. But how can I implement it on my code to read status? I tried using Powershell in Azure Functions for enabling "az login" and "az iot central show device twin" commands, but it doesn't work at all. There is no proper documentation of adding Azure CLI in Azure Functions - Powershell.
Can you please help me with reading the Connection Status of each and every device to automate my system? It's really important and urgent for me.
