sendEncryptedMessageTo method
Sends a message, whose payload is encrypted, to a remote node.
The message payload is set to data
and is encrypted. 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 sendEncryptedMessageTo(Object data, String destination) {
if (_datalinkManager.checkState() == 0) {
throw DeviceFailureException('No wifi and bluetooth connectivity');
}
_presentationManager.send(data, destination, true);
}