On Mon, Nov 9, 2020 at 6:34 PM Christian Schneider <cschneider@xxxxxxxxxxxxx> wrote: > > Hi and sorry for asking user question here, but I couldn't find any > other place to ask, and the documentation doesn't mention it. > > Is it OK to query the state an output pin is set to with > gpiod_line_get_value(), or does this give not what I want/expect? > > BR, Christian Hi Christian! If your program is driving that pin then there's no reason to check its value. If it's another process that is driving it then you can't request it and read its value at the same time. We'll eventually get to having a centralized user-space daemon that allows it but for now you would have to hack your own solution. Bartosz