code: function(devices)
  		{
  			for (var i in devices)
  			{
  				var device = devices[i]
  				if (device.name == params.name)
  				{
  					console.log('Found bonded device: ' + device.name)
  					params.onFound(device)
  					return // bonded device found
  				}
  			}
  			params.onNotFound()
  		}
docs: Success function.