Handle events of the smik gateway's buttons.
The smik gateway currently has one hardware button, which serves two purposes:
- Reset the gateway to factory settings.
- Upload a log dump to the smik cloud.
In order to performs these two actions with one button and to prevent accidental factory resets, the button must be pressed within certain constraints:
- To reset the gateway to factory settings, the button must be pressed five times within ten seconds.
- To upload a log dump to the smik cloud, the button must be pressed and held for five to twenty seconds.
The folder examples contains a few examples on how to use the library.
This library uses evdev and only runs on Linux.