How do I force the system to detect a GPIO device has been connected or disconnected?
For instance, I'm playing with the DS18B20 temperature sensor, and I noticed that immediately after connecting it, it does not show in
/sys/bus/w1/devices, it only appears after a few seconds.
When I disconnect it, it seems to take much longer (more than 10 seconds) until it finally disappears from the w1 devices list.
I'd like to know exactly how long it takes, or to force a refresh of the list of connected devices.
PS: I'm using Raspbian, in case it is relevant for the answer.