NordicNrfMesh class
The entry point for the plugin. It exposes some important methods such as Bluetooth scanning and mesh (de)provisioning.
To leverage all Bluetooth capabilities, one shall instantiate BleMeshManager.
To use the Nordic Semiconductor's APIs, one should use the MeshManagerApi available via the meshManagerApi getter of the NordicNrfMesh instance.
This class is used to expose Nordic's APIs and handle a mesh network.
It listens to all native events and distribute it to broadcast Streams that should in turn be listened by plugin consumer.
Constructors
Properties
- bleStatus → BleStatus
-
Will return the last known
BleStatus
(tracked via stream by BLE library, so it should always be up-to-date)no setter -
bleStatusStream
→ Stream<
BleStatus> -
Provide a Stream of the current
BleStatus
of the host device.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- meshManagerApi → MeshManagerApi
-
This class is used to expose Nordic's APIs and handle a mesh network.
no setter
-
platformVersion
→ Future<
String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelProvisioning(
MeshManagerApi meshManagerApi, BleMeshManager< BleMeshManagerCallbacks> bleMeshManager) → Future<bool> - Will try to cancel the provisioning.
-
deprovision(
MeshManagerApi meshManagerApi, ProvisionedMeshNode meshNode) → Future< ConfigNodeResetStatus> -
Will try to deprovision the specified ProvisionedMeshNode by sending
ConfigNodeReset
message via the unicast address. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provisionedNodesInRange(
{Duration timeoutDuration = kDefaultScanDuration}) → Future< List< DiscoveredDevice> > - Will scan for provisioned nodes.
-
provisioning(
MeshManagerApi meshManagerApi, BleMeshManager< BleMeshManagerCallbacks> bleMeshManager, DiscoveredDevice device, String serviceDataUuid, {ProvisioningEvent? events}) → Future<ProvisionedMeshNode> -
Will try to provision the specified
DiscoveredDevice
. -
scanForProxy(
) → Stream< DiscoveredDevice> - Will scan for provisioned nodes.
-
scanForUnprovisionedNodes(
) → Stream< DiscoveredDevice> - Will scan for unprovisioned nodes.
-
scanWithServices(
List< Uuid> services) → Stream<DiscoveredDevice> - Will scan for devices that broadcast given services.
-
searchForSpecificNode(
String deviceNameOrId, {bool isProxy = false, Duration timeoutDuration = kDefaultScanDuration}) → Future< DiscoveredDevice?> - Will scan for the given device using name or id (MAC on Android or UUID on iOS).
-
toString(
) → String -
A string representation of this object.
inherited
-
unprovisionedNodesInRange(
{Duration timeoutDuration = kDefaultScanDuration}) → Future< List< DiscoveredDevice> > - Will scan for unprovisioned nodes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited