registerForMpn method

Future<void> registerForMpn(
  1. MpnDevice device
)

Operation method that registers the MPN device on the server's MPN Module.

By registering an MPN device, the client enables MPN functionalities such as subscribe.

General Edition Note MPN is an optional feature, available depending on Edition and License Type. To know what features are enabled by your license, please see the License tab of the Monitoring Dashboard (by default, available at /dashboard).

Lifecycle An MpnDevice can be registered at any time. The registration will be notified through a MpnDeviceListener.onRegistered event. Note that forwarding of the registration to the server is made in a separate thread.

  • device An MpnDevice instance, carrying all the information about the MPN device.

Throws IllegalArgumentException if the specified device is null.

⚠ WARNING ⚠ The completion of the returned Future indicates that the operation has been accepted and is in progress, but not necessarily completed. To receive notifications about events generated by the operation, it is necessary to register an MpnDeviceListener.

Implementation

Future<void> registerForMpn(MpnDevice device) async {
  var arguments = <String, dynamic>{
    'mpnDevId': device._id
  };
  return await NativeBridge.instance.client_registerForMpn(_id, device._id, device, arguments);
}