From cc56f7666d142107fe522684195b5056ffc8cafa Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 4 Jul 2013 17:39:14 +0200 Subject: YunServer: added write() method --- libraries/Bridge/YunServer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libraries/Bridge/YunServer.cpp') diff --git a/libraries/Bridge/YunServer.cpp b/libraries/Bridge/YunServer.cpp index f23566a..3473ce8 100644 --- a/libraries/Bridge/YunServer.cpp +++ b/libraries/Bridge/YunServer.cpp @@ -46,3 +46,9 @@ YunClient YunServer::accept() { return YunClient(res[0]); } +size_t YunServer::write(uint8_t c) { + uint8_t cmd[] = { 'b', c }; + bridge.transfer(cmd, 2); + return 1; +} + -- cgit v1.2.3-18-g5258