class DeviceWatcher
Defined at line 192 of file fidling/gen/sdk/fidl/fuchsia.lowpan/fuchsia.lowpan/hlcpp/fuchsia/lowpan/cpp/fidl.h
Protocol for discovering and resolving LoWPAN interfaces and their
associated control protocol instances.
Public Members
static const char[] Name_
Public Methods
void ~DeviceWatcher ()
void WatchDevices (WatchDevicesCallback callback)
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.