That should work absolutely fine: http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_disconnect
Although the code you post needs another ) in it. What isn't working for you? It just doesn't seem to disconnect for you?
)
@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 should work absolutely fine: http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_disconnect
Although the code you post needs another
)
in it. What isn't working for you? It just doesn't seem to disconnect for you?