That's a bit strange about the reconnect, but maybe it just doesn't reconnect if there's no service provided that it 'wants'.
It's be worth trying without the whitelisting first just in case that is causing you issues.
Maybe try making the Puck a HID device: http://www.espruino.com/Puck.js+Keyboard#multimedia-keys
So literally just adding the lines:
var controls = require("ble_hid_controls"); NRF.setServices(undefined, { hid : controls.report });
That'll make it a 'multimedia control' (for play/stop/pause/etc) that the phone will probably want to stay connected to.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's a bit strange about the reconnect, but maybe it just doesn't reconnect if there's no service provided that it 'wants'.
It's be worth trying without the whitelisting first just in case that is causing you issues.
Maybe try making the Puck a HID device: http://www.espruino.com/Puck.js+Keyboard#multimedia-keys
So literally just adding the lines:
That'll make it a 'multimedia control' (for play/stop/pause/etc) that the phone will probably want to stay connected to.