amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
51 stars 57 forks source link

Support for IoT Hub query language for device and module twins, jobs, and message routing #33

Closed lohmanndouglas closed 3 years ago

lohmanndouglas commented 3 years ago

Is it possible to perform query requests now or is there any consideration to implement a query language feature?

as described here

I am figuring out a way to get modules and/or devices that are currently connected to your edgeHub. For that, I am doing GetModuleTwin requests for each device. With a query, I could save some requests.

https://stackoverflow.com/questions/65014114/what-is-connected-client-count-on-azure-iot-edge-dashboard

If there is no implementation for that and it is considered a useful feature, I would like to develop it :)

amenzhinsky commented 3 years ago

It's already implemented https://github.com/amenzhinsky/iothub/blob/445cd54636dd297745aecf9fc14a094c58ef3ab2/iotservice/client.go#L1122

lohmanndouglas commented 3 years ago

Thanks @amenzhinsky