Skip to content

Commit

Permalink
Merge pull request #18 from bbc/mac_address
Browse files Browse the repository at this point in the history
Added Wifi mac address
  • Loading branch information
jrmhaig committed Nov 23, 2015
2 parents 3d9b2ab + 3e28d9f commit 1b2842b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/device_api/ios/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b2842b

Please sign in to comment.