Is there any way to detect if a GPIO already has a handler attached?
According to the doc (and testing):
The client will be killed for below scenarios:
- Only one handler can be registered per pin. Subsequent attempts to register a handler will result in the client being killed.