code: function(devices)
  			{
  				for (var i in devices)
  				{
  					var d = devices[i];
  					if (d.address == device.address)
  					{
  						success("bonded");
  						return; // bonded device found
  					}
  				}
  				success("unbonded")
  			}
docs: Success function.