public class

WifiProfile

extends Object
java.lang.Object
   ↳ com.datalogic.device.wifi.WifiProfile

Class Overview

The WifiProfile class is used to both represent a valid Wi-Fi profile and manipulate it (e.g. add, remove, check for existence, etc...). Profiles are created through a builder-pattern.

Summary

Nested Classes
class WifiProfile.Builder The WifiProfile.Builder class is used create and manipulate Wi-Fi profiles. 
enum WifiProfile.CertificateType Enumeration of the valid encodings for the user-certificate to be used for the EAP authentication. 
enum WifiProfile.EapMethod Enumeration of the valid EAP methods to use for WPA/WPA2 EAP authentication. 
enum WifiProfile.EapPhase2 Enumeration of the valid EAP phase-2 methods to use for WPA/WPA2 EAP authentication. 
Public Methods
boolean addOrUpdate()
Add a new Wi-Fi profile or updates any existing one whose ESSID matches the one represented by the WifiProfile instance.
boolean connect()
Connect to the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.
boolean disconnect()
Disconnect from the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.
boolean exists()
Tell whether the Wi-Fi a profile whose ESSID matches the one represented by the WifiProfile instance is configured (but not necessarily in use).
boolean isConnected()
Tell whether the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance is currently connected.
boolean remove()
Remove the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean addOrUpdate ()

Added in revision 32

Add a new Wi-Fi profile or updates any existing one whose ESSID matches the one represented by the WifiProfile instance.

Returns
  • a boolean value indicating the outcome of the operation.

public boolean connect ()

Added in revision 32

Connect to the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.

Returns
  • a boolean value indicating the outcome of the operation.

public boolean disconnect ()

Added in revision 32

Disconnect from the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.

Returns
  • a boolean value indicating the outcome of the operation.

public boolean exists ()

Added in revision 32

Tell whether the Wi-Fi a profile whose ESSID matches the one represented by the WifiProfile instance is configured (but not necessarily in use).

Returns
  • a boolean value indicating if the profile exists.

public boolean isConnected ()

Added in revision 32

Tell whether the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance is currently connected.

Returns
  • a boolean value indicating the profile connection state.

public boolean remove ()

Added in revision 32

Remove the Wi-Fi profile whose ESSID matches the one represented by the WifiProfile instance.

Returns
  • a boolean value indicating the outcome of the operation.