Android ARP Cache
Get Android ARP Cache or Query ARP Cache against an IP Address or a MAC Address.
- Note: This plugin only retrieves the contents of the ARP cache file. The contents of the file are totally dependent on Android OS. More information: ARP Man Page.
Supported Platforms
- Android
Installation
cordova plugin add cordova-arp-cache-fetch
or
cordova plugin add https://github.com/arvindr21/cordova-android-arp-cache.git
Example
Example App: Cordova-NetworkPeers
Usage
This plugin defines a global ARP
object.
Although the object is in the global scope, it is not available until after the deviceready
event.
Get Raw ARP Cache
- success : Success callback
- error : Error Callback
ARP;
Get Parsed ARP Cache
- success : Success callback
- error : Error Callback
ARP;
Get Macaddress from IP address - Query ARP cache
- ip : IP address of the device
- success : Success callback
- error : Error Callback
ARP;
Get IP address from Macaddress - Query ARP cache
- mac : Macaddress of the device
- success : Success callback
- error : Error Callback
ARP;
Refresh ARP cache
- success : Success callback
- error : Error Callback
Note: This method will take greater than 254 * 300 ms (76.20 seconds) to complete.
ARP;