As @fanoush says you can't make a device connect...
However you could potentially use NRF.disconnect() to force a disconnect and then NRF.setMACAddress to change your Bangle's MAC address.
NRF.disconnect()
NRF.setMACAddress
Then, as long as both of those devices auto-connected as soon as they saw 'their' Bangle's MAC address you could do what you want.
@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.
As @fanoush says you can't make a device connect...
However you could potentially use
NRF.disconnect()
to force a disconnect and thenNRF.setMACAddress
to change your Bangle's MAC address.Then, as long as both of those devices auto-connected as soon as they saw 'their' Bangle's MAC address you could do what you want.