Skip to content

Most visited

Recently visited

navigation

LowpanIdentity.Builder

LowpanIdentity.Builder

public static class LowpanIdentity.Builder
extends Object

java.lang.Object
   ↳ com.google.android.things.lowpan.LowpanIdentity.Builder


Builder class for constructing instances of LowpanIdentity.

Summary

Public constructors

LowpanIdentity.Builder()

Public methods

LowpanIdentity build()

Builds a LowpanIdentity object based on the previously set criteria.

LowpanIdentity.Builder setChannel(int x)

Sets the channel of the network.

LowpanIdentity.Builder setName(String x)

Sets the name of the network.

LowpanIdentity.Builder setPanid(int x)

Sets the PANID of the network.

LowpanIdentity.Builder setRawName(byte[] x)

Sets the name of the network using raw bytes.

LowpanIdentity.Builder setXpanid(byte[] x)

Sets the XPANID of the network.

Inherited methods

From class java.lang.Object

Public constructors

LowpanIdentity.Builder

LowpanIdentity.Builder ()

Public methods

build

LowpanIdentity build ()

Builds a LowpanIdentity object based on the previously set criteria.

Returns
LowpanIdentity

setChannel

LowpanIdentity.Builder setChannel (int x)

Sets the channel of the network.

Parameters
x int
Returns
LowpanIdentity.Builder

setName

LowpanIdentity.Builder setName (String x)

Sets the name of the network.

If the given string isn't normalized, the actual name set will be normalized automatically. If you need to set the exact byte value for the network name, use #setRawName instead.

Parameters
x String
Returns
LowpanIdentity.Builder

See also:

setPanid

LowpanIdentity.Builder setPanid (int x)

Sets the PANID of the network.

Parameters
x int
Returns
LowpanIdentity.Builder

setRawName

LowpanIdentity.Builder setRawName (byte[] x)

Sets the name of the network using raw bytes.

The use of this method should only be necessary in extraordinary circumstances. In almost all cases, you should use #setName instead.

Parameters
x byte
Returns
LowpanIdentity.Builder

See also:

setXpanid

LowpanIdentity.Builder setXpanid (byte[] x)

Sets the XPANID of the network.

Parameters
x byte
Returns
LowpanIdentity.Builder
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)