OpenMQTTGateway icon indicating copy to clipboard operation
OpenMQTTGateway copied to clipboard

Check GPIOInput state on demand

Open orxaz opened this issue 4 years ago • 5 comments

I can't find if is there a way to check, once booted, the state of a defined GPIOInput. OMG reports the defined pin state at boot, but, at least in my case, never more until switched on or off.

Is there a way to check this?

Thanks.

orxaz avatar Sep 01 '20 14:09 orxaz

OMG should publish the change of state of the GPIOInput defined, could you share the version that you are using and an extract of the serial monitor?

1technophile avatar Sep 01 '20 20:09 1technophile

In fact, OMG publish when state changes, but that I would like is to be able to check it on demand, asking on a topic for example, or the state to be reported periodically.

Now I am out, will try to get serial output later.

Version is current, at least 5-6 days ago: Can't find in code, only found "version_tag"

Any way, I have downloaded master version on august 26th.

orxaz avatar Sep 02 '20 13:09 orxaz

In fact, OMG publish when state changes, but that I would like is to be able to check it on demand, asking on a topic for example, or the state to be reported periodically.

This is not available yet, would you be interested in proposing a pull request?

1technophile avatar Sep 02 '20 15:09 1technophile

Yes, this would be a nice feature for my needs on this project.

I suppose I must open any kind of ticket, right?

I never did this before, sorry for my ignorance.

orxaz avatar Sep 03 '20 08:09 orxaz

Sorry if I did it wrong way: https://github.com/1technophile/OpenMQTTGateway/pull/756

Thanks.

orxaz avatar Sep 03 '20 08:09 orxaz