From 3e28d9f814a856b78b62c289513b900a02f7885d Mon Sep 17 00:00:00 2001 From: Jon Wilson Date: Mon, 23 Nov 2015 11:42:50 +0000 Subject: [PATCH] Added Wifi mac address --- lib/device_api/ios/device.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/device_api/ios/device.rb b/lib/device_api/ios/device.rb index 975c564..8a200d3 100644 --- a/lib/device_api/ios/device.rb +++ b/lib/device_api/ios/device.rb @@ -75,6 +75,12 @@ def ip_address IPAddress.address(serial) end + # Get the Wifi Mac address for the current device + # @return [String] Mac address of current device + def wifi_mac_address + get_prop('WiFiAddress') + end + # Install a specified IPA # @param [String] ipa string containing path to the IPA to install # @return [Boolean, Exception] true when the IPA installed successfully, otherwise an error is raised