I have a bluetooth remote shutter paired to my Android phone. The remote shutter acts like a bluetooth keyboard.
My app happily processes the keyboard events created by the remote shutter, but the remote shutter goes to sleep after 90 seconds, and requires one key press to wake it up before it sends the next key press.
I need a mechanism for keeping the remote shutter awake so that I don't lose that first key press. (Yes I understand the sleep mode is to conserve energy, but I need the low latency).
I have tried connecting to the device as both client and server, with the hope that I could send something on the OutputStream to the device. But I wasn't able to create a connection.
Is there anyway way to programmatically keep the remote shutter awake?
Based on the following answers I suspect not
- https://stackoverflow.com/a/15164926/493682
- https://stackoverflow.com/a/36384946/493682
- https://stackoverflow.com/a/31299825/493682
Just for completeness the details of the paired device are:
- name=AB Shutter3
- MAC=Some_MAC_ADDRESS
- btClass=2540
- btType=1
- UUIDs=[00001124-0000-1000-8000-00805f9b34fb, 00000000-0000-1000-8000-00805f9b34fb]