I am working on a project where I need to send a notification to my phone when a push button is pressed on the bluetooth device. Its basically what the keyfob is doing. I thought of two ways to do this but I don't know which is most efficient and battery saving on both the bluetooth device and on the phone.
Method 1: Bluetooth device as a peripheral and the phone connects to it and subscribe to notifications via the GATT service. In this case, the phone needs to maintain the connection all the time.
Method 2: Bluetooth device as a broadcaster (something like ibeacons). Basically when the button is pressed, the bluetooth device broadcast for 5 seconds and stops after that. Waiting for another button press. On the phone side, it scans on a very regular interval (scan for 1 sec, sleep for 4 secs and repeat).
I am not sure if a permanent bluetooth connection on the phone or constant scanning consumes more battery on the phone. Anyone has any thoughts on this?