Pi4J / pi4j-v2

Pi4J Version 2.0
Apache License 2.0
273 stars 57 forks source link

Use Socket SO_TIMEOUT to wait for data #306

Closed IAmNickNack closed 11 months ago

IAmNickNack commented 11 months ago

This PR proposes an alternative implementation to wait for expected data when using the sockets GPIO provider as referred to in #305

eitch commented 11 months ago

@IAmNickNack this is definitely better than the busy waiting. Thanks for the PR