src/windows/bleProxy.js
function (successCallback, errorCallback, deviceHandle, charHandle) {

			winble.logger.logDebug("disableCharacteristicNotification", "deviceHandle='" + deviceHandle + ", charHandle='" + charHandle + "'");

			// Find the requested device in our list of discovered devices
			var device = winble.deviceManager.getDeviceFromHandle(deviceHandle, "disableCharacteristicNotification", errorCallback);
			if (device == null)
				return;

			// Find the requested characteristic in the device's list of characteristics
			var characteristic = winble.deviceManager.getCharacteristicFromHandle(device, charHandle, "disableCharacteristicNotification", errorCallback);
			if (characteristic == null)
				return;

			// Unregister the callback
			try {
				characteristic.gattChar.removeEventListener("valuechanged", characteristic.onValueChanged, false);
			} catch (e) {
				var msg = "Could not remove event listener:" + e;
				winble.logger.logError("disableCharacteristicNotification", msg);
				errorCallback(msg);
				return;
			}
		}
function (successCallback, errorCallback, deviceHandle, charHandle) {

			winble.logger.logDebug("disableCharacteristicNotification", "deviceHandle='" + deviceHandle + ", charHandle='" + charHandle + "'");

			// Find the requested device in our list of discovered devices
			var device = winble.deviceManager.getDeviceFromHandle(deviceHandle, "disableCharacteristicNotification", errorCallback);
			if (device == null)
				return;

			// Find the requested characteristic in the device's list of characteristics
			var characteristic = winble.deviceManager.getCharacteristicFromHandle(device, charHandle, "disableCharacteristicNotification", errorCallback);
			if (characteristic == null)
				return;

			// Unregister the callback
			try {
				characteristic.gattChar.removeEventListener("valuechanged", characteristic.onValueChanged, false);
			} catch (e) {
				var msg = "Could not remove event listener:" + e;
				winble.logger.logError("disableCharacteristicNotification", msg);
				errorCallback(msg);
				return;
			}
		}
function ( successCallback , errorCallback , deviceHandle , charHandle ) { winble . logger . logDebug ( "disableCharacteristicNotification" , "deviceHandle='" + deviceHandle + ", charHandle='" + charHandle + "'" ) ; // Find the requested device in our list of discovered devices var device = winble . deviceManager . getDeviceFromHandle ( deviceHandle , "disableCharacteristicNotification" , errorCallback ) ; if ( device == null ) return ; // Find the requested characteristic in the device's list of characteristics var characteristic = winble . deviceManager . getCharacteristicFromHandle ( device , charHandle , "disableCharacteristicNotification" , errorCallback ) ; if ( characteristic == null ) return ; // Unregister the callback try { characteristic . gattChar . removeEventListener ( "valuechanged" , characteristic . onValueChanged , false ) ; } catch ( e ) { var msg = "Could not remove event listener:" + e ; winble . logger . logError ( "disableCharacteristicNotification" , msg ) ; errorCallback ( msg ) ; return ; } }
Called from the disableCharacteristicNotification API; stop calling the caller's callback function when the value of the specified characteristic changes.
Called from the disableCharacteristicNotification API ; stop calling the caller s callback function when the value of the specified characteristic changes .