Es loht sich compile und lieferet au Wert. Das wärs aber au scho gsi.

Revision:
0:1a79273bc3e6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SerialServer.h	Mon Apr 09 07:00:45 2018 +0000
@@ -0,0 +1,43 @@
+/*
+ * SerialServer.h
+ * Copyright (c) 2018, ZHAW
+ * All rights reserved.
+ */
+
+#ifndef SERIAL_SERVER_H_
+#define SERIAL_SERVER_H_
+
+#include <cstdlib>
+#include <string>
+#include <mbed.h>
+#include "IMU.h"
+#include "Controller.h"
+
+using namespace std;
+
+/**
+ * This class implements a communication server using a serial interface.
+ */
+class SerialServer {
+    
+    public:
+        
+                        SerialServer(Serial& serial, IMU& imu, Controller& controller);
+        virtual         ~SerialServer();
+        
+    private:
+        
+        static const int    BUFFER_SIZE = 64;
+        
+        Serial&         serial;
+        IMU&            imu;
+        Controller&     controller;
+        string          input;
+        string          output;
+        
+        void            receive();
+        void            transmit();
+};
+
+#endif /* SERIAL_SERVER_H_ */
+