aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/YunServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Bridge/YunServer.cpp')
-rw-r--r--libraries/Bridge/YunServer.cpp6
1 files changed, 6 insertions, 0 deletions
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;
+}
+