unsetCallbackReceivedMessageForDevice method

void unsetCallbackReceivedMessageForDevice(
  1. String endpointId, {
  2. String callbackName = "ConnectionsManager:receivedMessageForDevice",
})

Unsets a received message callback for a given Device endpointId

Implementation

void unsetCallbackReceivedMessageForDevice(String endpointId,
    {String callbackName = "ConnectionsManager:receivedMessageForDevice"}) {
  Device? device = _findDevice(connectedDevices, endpointId);
  if (device != null) {
    device.unsetCallbackReceivedMessage(callbackName);
  }
}