sendMessageTo method
Sends a message to a remote node.
The message payload is set to data
and the message is sent to the remote
node, which is specified by destination
.
Throws a DeviceFailureException if the Wi-Fi/Bluetooth adapter is not enabled.
Implementation
void sendMessageTo(Object data, String destination) {
if (_datalinkManager.checkState() == 0) {
throw DeviceFailureException('No wifi and bluetooth connectivity');
}
_presentationManager.send(data, destination, false);
}