From 039e56ae57fc1e04186a76261d005f028a667b75 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sat, 17 Jan 2015 15:42:35 +0100 Subject: [PATCH] devicechannel: send using instances of Packet --- src/devicechannel.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devicechannel.vala b/src/devicechannel.vala index 6e7fa6b..7f2388f 100644 --- a/src/devicechannel.vala +++ b/src/devicechannel.vala @@ -66,8 +66,8 @@ class DeviceChannel : Object { connected(); } - public async void send(string message) { - string to_send = message + "\n"; + public async void send(Packet pkt) { + string to_send = pkt.to_string() + "\n"; debug("send data: %s", to_send); // _dout.put_string(data); yield _conn.output_stream.write_async(to_send.data);