BB10-Cordova/simplexpbeaconplugin/sample/www/js/index.js
function() {
		cordova.plugins.simplexpbeacon.removeBeaconUuidToMonitor(
			"8AEFB031-6C32-486F-825B-E26FA193487D",
			function(data){

				console.log('XXXX DATA: ' + data);
				var json = JSON.parse(data);
				console.log('XXXX json.status: ' + json.status);				

				if (json.status === 'OK') {
					app.logMessage('Beacon removed');
					bluetoothInitialised = true;
				} else {
					app.logMessage('Failed to remove beacon: ' + json.desc);
				}
			}
		);

		cordova.plugins.simplexpbeacon.terminateBluetooth(
			function(data){

				console.log('XXXX DATA: ' + data);
				var json = JSON.parse(data);
				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() {
		cordova.plugins.simplexpbeacon.removeBeaconUuidToMonitor(
			"8AEFB031-6C32-486F-825B-E26FA193487D",
			function(data){

				console.log('XXXX DATA: ' + data);
				var json = JSON.parse(data);
				console.log('XXXX json.status: ' + json.status);				

				if (json.status === 'OK') {
					app.logMessage('Beacon removed');
					bluetoothInitialised = true;
				} else {
					app.logMessage('Failed to remove beacon: ' + json.desc);
				}
			}
		);

		cordova.plugins.simplexpbeacon.terminateBluetooth(
			function(data){

				console.log('XXXX DATA: ' + data);
				var json = JSON.parse(data);
				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 ( ) { cordova . plugins . simplexpbeacon . removeBeaconUuidToMonitor ( "8AEFB031-6C32-486F-825B-E26FA193487D" , function ( data ) { console . log ( 'XXXX DATA: ' + data ) ; var json = JSON . parse ( data ) ; console . log ( 'XXXX json.status: ' + json . status ) ; if ( json . status === 'OK' ) { app . logMessage ( 'Beacon removed' ) ; bluetoothInitialised = true ; } else { app . logMessage ( 'Failed to remove beacon: ' + json . desc ) ; } } ) ; cordova . plugins . simplexpbeacon . terminateBluetooth ( function ( data ) { console . log ( 'XXXX DATA: ' + data ) ; var json = JSON . parse ( data ) ; 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