# PiGPIOd - reading status of output pins

**URL:** <https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727>\
**Category:** General\
**Created:** [16 June 2024 08:34 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727 "2024-06-16T08:34:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andre\_x](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@andre\_x](https://discourse.nodered.org/u/andre_x)\
**Post date:** [16 June 2024 08:34 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/1 "2024-06-16T08:34:59Z")

</div>

I need to know the status of a pin that I control (with GPIOd). I can set it as input and output, but when I change its status, the output node doesn't say anything.  
I need this to double check if some commands are working.  
Thanks!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [16 June 2024 10:58 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/2 "2024-06-16T10:58:53Z")

</div>

A pin can’t be both an input and output. If set to an output then the status will show what you set it to. (But won’t guarantee that the pin is that level if there is a hardware failure). If you need to check the hardware state then you need to feed that back into another gpio set as an input.

---

<div class="post-metadata">

**Author:** ![andre\_x](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@andre\_x](https://discourse.nodered.org/u/andre_x)\
**Post date:** [17 June 2024 08:06 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/3 "2024-06-17T08:06:56Z")

</div>

Damn! With WiringPi the commadn `gpio readall` could read all the pins.  
@dceejay Do you think that wiring the output pins to input pins is the only option?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 June 2024 08:48 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/4 "2024-06-17T08:48:44Z")

</div>

> [@andre\_x](#):
>
> With WiringPi the commadn `gpio readall` could read all the pins.

I am pretty sure that it isn't reading the output pins, all it is doing is telling you what value you last wrote to it. But you can know that anyway, as it is you that wrote it.

---

<div class="post-metadata">

**Author:** ![andre\_x](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@andre\_x](https://discourse.nodered.org/u/andre_x)\
**Post date:** [18 June 2024 06:29 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/5 "2024-06-18T06:29:19Z")

</div>

Thanks!  
.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 September 2024 06:30 UTC](https://discourse.nodered.org/t/pigpiod-reading-status-of-output-pins/88727/6 "2024-09-16T06:30:10Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
