NetworkInfo

public class NetworkInfo extends Object

Represents information about a network configured on Weave device, or known to it via a network scan.

Field Summary

public long NetworkId The network id assigned to the network by the device, -1 if not specified.
public NetworkType NetworkType The type of network (WiFi, Thread, etc.)
public byte[] ThreadExtendedPANId The Thread extended PAN id, or NULL if not specified.
public byte[] ThreadNetworkKey The Thread network key, or NULL if not specified.
public String ThreadNetworkName The Thread network name, or NULL if not a Thread network.
public byte[] WiFiKey The WiFi key, or NULL if not specified.
public WiFiMode WiFiMode The operating mode of the WiFi network.
public WiFiRole WiFiRole The role played by the device on the WiFi network.
public String WiFiSSID The WiFi SSID, or NULL if not a WiFi network.
public WiFiSecurityType WiFiSecurityType The WiFi security type.
public short WirelessSignalStrength The signal strength of the network, in dBm, or Short.MIN_VALUE if not available/applicable.

Public Constructor Summary

Public Method Summary

static NetworkInfo
Make(int networkType, long networkId, String wifiSSID, int wifiMode, int wifiRole, int wifiSecurityType, byte[] wifiKey, String threadNetworkName, byte[] threadExtendedPANId, byte[] threadNetworkKey, short wirelessSignalStrength)
static NetworkInfo
MakeThread(String threadNetworkName, byte[] threadExtendedPANId, byte[] threadNetworkKey)
static NetworkInfo
MakeWiFi(String wifiSSID, WiFiMode wifiMode, WiFiRole wifiRole, WiFiSecurityType wifiSecurityType, byte[] wifiKey)

Inherited Method Summary

Fields

public long NetworkId

The network id assigned to the network by the device, -1 if not specified.

public NetworkType NetworkType

The type of network (WiFi, Thread, etc.)

public byte[] ThreadExtendedPANId

The Thread extended PAN id, or NULL if not specified. Must be exactly 8 bytes in length.

public byte[] ThreadNetworkKey

The Thread network key, or NULL if not specified.

public String ThreadNetworkName

The Thread network name, or NULL if not a Thread network.

public byte[] WiFiKey

The WiFi key, or NULL if not specified.

public WiFiMode WiFiMode

The operating mode of the WiFi network.

public WiFiRole WiFiRole

The role played by the device on the WiFi network.

public String WiFiSSID

The WiFi SSID, or NULL if not a WiFi network.

public WiFiSecurityType WiFiSecurityType

The WiFi security type.

public short WirelessSignalStrength

The signal strength of the network, in dBm, or Short.MIN_VALUE if not available/applicable.

Public Constructors

public NetworkInfo ()

Public Methods

public static NetworkInfo Make (int networkType, long networkId, String wifiSSID, int wifiMode, int wifiRole, int wifiSecurityType, byte[] wifiKey, String threadNetworkName, byte[] threadExtendedPANId, byte[] threadNetworkKey, short wirelessSignalStrength)

Parameters
networkType
networkId
wifiSSID
wifiMode
wifiRole
wifiSecurityType
wifiKey
threadNetworkName
threadExtendedPANId
threadNetworkKey
wirelessSignalStrength

public static NetworkInfo MakeThread (String threadNetworkName, byte[] threadExtendedPANId, byte[] threadNetworkKey)

Parameters
threadNetworkName
threadExtendedPANId
threadNetworkKey

public static NetworkInfo MakeWiFi (String wifiSSID, WiFiMode wifiMode, WiFiRole wifiRole, WiFiSecurityType wifiSecurityType, byte[] wifiKey)

Parameters
wifiSSID
wifiMode
wifiRole
wifiSecurityType
wifiKey