class DeviceExtra
Defined at line 6626 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
LoWPAN Device "Extra" Protocol.
This protocol provides clients with a way to control and
monitor aspects of the LoWPAN device that can, either
directly or indirectly, leak PII or cryptographic keys.
Public Methods
void ~DeviceExtra ()
void GetCredential (GetCredentialCallback callback)
Fetches the current credential.
The returned credential will have originated from a previous call
to `ProvisionNetwork`, `JoinNetwork`, or `FormNetwork`. If the
device is not provisioned (for example, by calling `LeaveNetwork()`)
then this method returns nothing.
void WatchIdentity (WatchIdentityCallback callback)
Observes changes to the current network identity.
First call always returns a snapshot of the current identity.
Subsequent calls will block until the identity has changed,
upon which the entire updated identity is returned.
If there is no identity currently associated with the
device, then the returned identity will be empty.
Changes are not queued. The returned identity always represents
the latest and most accurate value, even if several changes
had happened in-between calls.
Note that the changes are NOT incremental: whenever there
is a change, the entire current LoWPAN identity is returned.
The value of the identity can be changed by any of the
following calls:
* `Device.ProvisionNetwork()`
* `Device.LeaveNetwork()`
* `DeviceExtra.JoinNetwork()`
* `DeviceExtra.FormNetwork()`
void GetCurrentMacAddress (GetCurrentMacAddressCallback callback)
Returns the current MAC address being used for this device,
which may differ from the static factory-assigned MAC address.
This address is generally static, but may change when the
device is re-associated to a different network or a factory
reset is performed.