This command, can be used to manage general purpose input #2.
GPI2 ends on pin 7 of 22 pins main connector.
GPIO GPI2 [<argument>]
| <none> | Used to get actual input status. Returns actual input status, followed by OK. |
| NOTIFY | Used to be notifyed when input status changes. Returns only OK. |
| SILENT | Used to unregister notification feature on input status changes. Returns only OK. |
Getting input status:
GPIO GPI2 ON OK
Enable notification
GPIO GPI2 NOTIFY OK
If enabled, unsolicited events will be triggered on input status changes.
EVNT GPI2 ON