Obtain a devices IP address with Enterprise Browser APIs

// Expert user has replied.
M MIke Esposito 1 week ago
21 1 0

Hello,

I am developing a web app to be hosted in IIS and used with Enterprise Browser on MC9300's .

I need to programmatically send the devices IP address to the server.

Is this possible using the EB APIs?

 

thanks,

 

Please Register or Login to post a reply

1 Replies

I Ian Hatton

If you have a WiFi connection , you can query the current IP address via the SignalIndicators API : https://techdocs.zebra.com/enterprise-browser/latest/api/signalindicators/

wlanStatus()

Retrieve the current signal status. If a callback is provided to retrieve the signal then it will be called periodically at the specified refreshInterval. On Android, instead of being called periodically, the callback will be called when one of the below values changes.

Callback

Async Callback Returning Parameters: HASH

  • signalStrength : INTEGER

    The signal strength as a value between 0 and 100. Platforms: WM, CE, Android

  • essid : STRING

    The current ESSID

  • macAddress : STRING

    The WiFi MAC address

  • adapterName : STRING

    The WiFi adapter name

  • dhcpServer : STRING

    The current DHCP server's address. Always populated on Android, even on static IP configurations. Platforms: WM, CE, Android

  • dhcpStatic : STRING

    Whether the unit has a static or DHCP address. Not available on Android. Platforms: WM

  • gateway : STRING

    The current gateway IP address

  • ipAddress : STRING

    The device's IP address

CONTACT
Can’t find what you’re looking for?