Skip to content

Most visited

Recently visited

navigation

LowpanDriverCallback

LowpanDriverCallback

public class LowpanDriverCallback
extends Object

java.lang.Object
   ↳ com.google.android.things.userdriver.LowpanDriverCallback


Callback interface for LowpanDriver.

An instance of this class is passed to the LowpanDriver instance via start(LowpanDriverCallback). It is used by the driver and not subclassed.

See also:

Summary

Public methods

void onError(int error)

Called by @{link LowpanDriver} instance when an error has been detected.

void onReceiveFrame(byte[] frame)

Called by @{link LowpanDriver} instance whenever a Spinel frame is received from the NCP.

void onReset()

Called by @{link LowpanDriver} instance when the driver has detected a NCP reset.

void onStarted()

Called by @{link LowpanDriver} instance when the driver has opened and is ready to transport frames.

Inherited methods

From class java.lang.Object

Public methods

onError

void onError (int error)

Called by @{link LowpanDriver} instance when an error has been detected.

Parameters
error int

See also:

onReceiveFrame

void onReceiveFrame (byte[] frame)

Called by @{link LowpanDriver} instance whenever a Spinel frame is received from the NCP.

Parameters
frame byte: Frame received from NCP.

onReset

void onReset ()

Called by @{link LowpanDriver} instance when the driver has detected a NCP reset.

onStarted

void onStarted ()

Called by @{link LowpanDriver} instance when the driver has opened and is ready to transport frames.

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)