How to get value from GPIO in realtime

I want to make an application to get value from GPIO in realtime. how to get it in realtime? usually i access the path from GPIO to get the value.

Thank you

you should try polling the pin data then :slight_smile:

which part in source code?

:wink: plz tell me more detail about which rate u need and etc … ?

after getting the value in real time I will send a broadcast to the application to get the changes

you need to have it refresh the data at some particular amount per rate of time,
maybe @hyphop have some ideas for you

check this one - i have made it before - of cause its just prototype but works well like example how to

1 Like

Ok i will check. thank you @hyphop