src/windows/bleProxy.js
function (successCallback) {

			// If the caller told us to stop scanning since our last scan, or all devices have been removed from the list, nothing to do
			if (!winble.deviceManager.isScanning || (winble.deviceManager.reportList.length == 0)) {
				winble.deviceManager.isReporting = false;
				return;
			}

			// Report the next device in our list
			var device = winble.deviceManager.getNextReportableDevice();
			if (device != null) {
				winble.logger.logDebug("reportNextDevice", "Reporting scan for " + device.gattDevice.name);
				var deviceOut = {
					"address": device.gattDevice.id,
					"name": device.gattDevice.name,
					"rssi": device.rssi,
					"scanRecord": "" // Base64 string, iOS only
				};
				successCallback(deviceOut, { keepCallback: true });
			}

			// Set up the next report
			setTimeout(function () {
				winble.deviceManager.reportNextDevice(successCallback);
			}, winble.deviceManager.REPORT_INTERVAL);
		}
function (successCallback) {

			// If the caller told us to stop scanning since our last scan, or all devices have been removed from the list, nothing to do
			if (!winble.deviceManager.isScanning || (winble.deviceManager.reportList.length == 0)) {
				winble.deviceManager.isReporting = false;
				return;
			}

			// Report the next device in our list
			var device = winble.deviceManager.getNextReportableDevice();
			if (device != null) {
				winble.logger.logDebug("reportNextDevice", "Reporting scan for " + device.gattDevice.name);
				var deviceOut = {
					"address": device.gattDevice.id,
					"name": device.gattDevice.name,
					"rssi": device.rssi,
					"scanRecord": "" // Base64 string, iOS only
				};
				successCallback(deviceOut, { keepCallback: true });
			}

			// Set up the next report
			setTimeout(function () {
				winble.deviceManager.reportNextDevice(successCallback);
			}, winble.deviceManager.REPORT_INTERVAL);
		}
function ( successCallback ) { // If the caller told us to stop scanning since our last scan, or all devices have been removed from the list, nothing to do if ( ! winble . deviceManager . isScanning || ( winble . deviceManager . reportList . length == 0 ) ) { winble . deviceManager . isReporting = false ; return ; } // Report the next device in our list var device = winble . deviceManager . getNextReportableDevice ( ) ; if ( device != null ) { winble . logger . logDebug ( "reportNextDevice" , "Reporting scan for " + device . gattDevice . name ) ; var deviceOut = { "address" : device . gattDevice . id , "name" : device . gattDevice . name , "rssi" : device . rssi , "scanRecord" : "" // Base64 string, iOS only } ; successCallback ( deviceOut , { keepCallback : true } ) ; } // Set up the next report setTimeout ( function ( ) { winble . deviceManager . reportNextDevice ( successCallback ) ; } , winble . deviceManager . REPORT_INTERVAL ) ; }
This function is called on a timed basis to report the next scanned device in our list to the caller
This function is called on a timed basis to report the next scanned device in our list to the caller