code: 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;
      }
docs: BT LE HR Plugin terminate Bluetooth