KminekMatej
Lurker
Hey guys,
I have a device, that based on some event, closes the relay output. I need an app on Android to react on this event and make some action based on this input (actuallly saving exact time of this event to sql db).
Easiest solution that comes on mymind is using headphone 3,5 jack as an GPIO input pin.
Can I somehow detect on Android, whether the two pins on jack are closed or not? Mabe I would need to connect some resistor to the pins instead of directly connecting them, thats doable.
Any help appreciated
I have a device, that based on some event, closes the relay output. I need an app on Android to react on this event and make some action based on this input (actuallly saving exact time of this event to sql db).
Easiest solution that comes on mymind is using headphone 3,5 jack as an GPIO input pin.
Can I somehow detect on Android, whether the two pins on jack are closed or not? Mabe I would need to connect some resistor to the pins instead of directly connecting them, thats doable.
Any help appreciated
