From 1f84d8476715120daa0d437ec73b2991ff6f983e Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Mon, 9 Oct 2017 22:46:04 +0200 Subject: [PATCH] device: interface for sending messages to a device --- src/mconnect/device.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mconnect/device.vala b/src/mconnect/device.vala index 2839141..12b04a2 100644 --- a/src/mconnect/device.vala +++ b/src/mconnect/device.vala @@ -592,4 +592,11 @@ class Device : Object { this.certificate_fingerprint = sb.str; } + + public void send(Packet pkt) { + // TODO: queue messages + if (this._channel != null) { + _channel.send(pkt); + } + } } \ No newline at end of file