Page 1 of 1

First time query gpio status not working

Posted: 26 Mar 2020, 18:03
by mquevedob
Hello all

When I send an HTTP request to get a GPIO pin status for the 1st time after boot the answer is empty

It is only after setting status at least once that GPIO status request gets a valid response

Is there a reason for this?

Regards
Martin

Re: First time query gpio status not working

Posted: 26 Mar 2020, 18:38
by iron
Hello,

From what I remember this is specific to one GPIO (0?)

Have you tried the same on a different GPIO ?

-D

Re: First time query gpio status not working

Posted: 26 Mar 2020, 19:17
by Micha_he
Have you set 'Send Boot State' in the switch-device ?

Otherwise the state is sent first, when it has changed.

Re: First time query gpio status not working

Posted: 27 Mar 2020, 14:30
by mquevedob
hi all

yes, i did set the boot state to output low... but i forgot to reboot
after rebooting it worked fine

thanks for your help

regards,
martin

Re: First time query gpio status not working

Posted: 27 Mar 2020, 14:32
by mquevedob
by the way... why is D0 not in the GPIO boot states ?

Re: First time query gpio status not working

Posted: 27 Mar 2020, 15:38
by grovkillen

Re: First time query gpio status not working

Posted: 27 Mar 2020, 16:30
by mquevedob
i see
but it does not seem to be a problem when used as output, right ?

Re: First time query gpio status not working

Posted: 27 Mar 2020, 16:59
by grovkillen
No it's no problem, as long as you don't mind it being high during a reboot.