# fuchsia.lowpan

<br />

Added: 7

## **PROTOCOLS**

## DeviceWatcher

*Defined in [fuchsia.lowpan/lowpan.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=44)*

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

<br />

### 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

| Name | Type |
|---|---|
| `added` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.lowpan#InterfaceName>:8` |
| `removed` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.lowpan#InterfaceName>:8` |

## **STRUCTS**

### MacAddress

*Defined in [fuchsia.lowpan/lowpan.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=25)*

LoWPAN MAC address.

On 802.15.4 networks, this is an EUI64.
Added: 9

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `octets` | `array<uint8, 8>` |   | No default |

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_LOWPAN_DEVICES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=39) | `8` | `uint32` |   |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [ChannelIndex](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=8) | `uint16` | Index used to identify a specific channel in the LoWPAN API. |
| [InterfaceName](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=35) | `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](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.lowpan/lowpan.fidl;l=19) | `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](https://fuchsia.dev/reference/fidl/fuchsia.lowpan#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. |