setCallbackReceivedMessage method
Sets callbackReceivedMessage callback that executes every time a message is received.
Implementation
void setCallbackReceivedMessage(
String callbackName, Function(Device) callbackReceivedMessage) {
this.callbackReceivedMessage[callbackName] = callbackReceivedMessage;
}