function() {
		var json = JSON.parse(com.blackberry.community.simplebeaconplugin.terminateBluetooth());

		console.log('XXXX json.status: ' + json.status);

		if (json.status === 'OK') {
			app.logMessage('Bluetooth terminated');
		} else {
			app.logMessage('Bluetooth failed to terminated: ' + json.desc);
		}

		bluetoothInitialised = false;
    }
function() {
		var json = JSON.parse(com.blackberry.community.simplebeaconplugin.terminateBluetooth());

		console.log('XXXX json.status: ' + json.status);

		if (json.status === 'OK') {
			app.logMessage('Bluetooth terminated');
		} else {
			app.logMessage('Bluetooth failed to terminated: ' + json.desc);
		}

		bluetoothInitialised = false;
    }
function ( ) { var json = JSON . parse ( com . blackberry . community . simplebeaconplugin . terminateBluetooth ( ) ) ; console . log ( 'XXXX json.status: ' + json . status ) ; if ( json . status === 'OK' ) { app . logMessage ( 'Bluetooth terminated' ) ; } else { app . logMessage ( 'Bluetooth failed to terminated: ' + json . desc ) ; } bluetoothInitialised = false ; }
BT LE HR Plugin terminate Bluetooth
BT LE HR Plugin terminate Bluetooth