fuchsia.lowpan

Added: 7

PROTOCOLS

DeviceWatcher

Defined in fuchsia.lowpan/lowpan.fidl

Protocol for discovering and resolving LoWPAN interfaces and their associated control protocol instances.

WatchDevices

Observes when devices are added or removed.

The first call to this method returns immediately with a DeviceChanges struct containing only items in the added field with the names of all of the current devices. Subsequent calls will block until a device has been added or removed, at which point it will return with the added and/or removed fields filled out accordingly. The changes are reported since the time that the method returned.

If both the added and removed fields have names in the returned table, then the removed field MUST be processed BEFORE added field.

If a device was added and then removed in-between calls to this method, the device will be absent from both the added and removed lists.

If the same device name is listed on both the added and removed fields, then the client should assume that the original device was removed and a new device instance started in its place. However, while the client should be able to handle this condition, it should not depend on the server will always have this behavior.

Request

<EMPTY>

Response

NameType
added vector<InterfaceName>:8
removed vector<InterfaceName>:8

STRUCTS

MacAddress

Defined in fuchsia.lowpan/lowpan.fidl

LoWPAN MAC address.

On 802.15.4 networks, this is an EUI64.

Added: 9

FieldTypeDescriptionDefault
octets array<uint8, 8> No default

CONSTANTS

NameValueTypeDescription
MAX_LOWPAN_DEVICES 8 uint32

ALIASES

NameValueDescription
ChannelIndex uint16

Index used to identify a specific channel in the LoWPAN API.

InterfaceName string[32]

Type describing the name of the network interface.

Interface names must satisfy the following regular expression:

 ^[a-z_][-_.+0-9a-z]{1,31}$
PowerDbm int8

Transmit/Received power, in dBm.

Can represent transmit and receive power levels from .2 femtowatts (-127dBm) to 5 gigawatts (127dBm).

The value -128 (RSSI_UNSPECIFIED) is reserved for indicating that a signal level is unspecified when used in the context of RSSI values, and must not be used when specifying transmit power.