registerForMessage abstract method

void registerForMessage(
  1. MqttMessageType msgType,
  2. MessageCallbackFunction msgProcessorCallback
)

Register the specified callback to receive messages of a specific type. The type of message that the callback should be sent The callback function that will accept the message type

Implementation

void registerForMessage(
    MqttMessageType msgType, MessageCallbackFunction msgProcessorCallback);