Code APP3

Dependencies:   mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial

Fork of APP3_Lab by Jean-Philippe Fournier

Revision:
13:5f21dd134bd2
Parent:
10:edcf07f33583
Child:
21:04fae6a95131
diff -r 1286b80c68f7 -r 5f21dd134bd2 sensors.cpp
--- a/sensors.cpp	Sun Oct 01 01:34:37 2017 +0000
+++ b/sensors.cpp	Sun Oct 01 16:34:11 2017 +0000
@@ -3,31 +3,11 @@
 MMA8452Q accel(p9, p10, 0x1D);
 DigitalIn Bouton1(p20);
 
-struct Accel_result
-{
-    float x;
-    float y;
-    float z;
-};
-
-struct Bouton_result
-{
-    bool etat;
-};
-
-typedef union Sensor_result
-{
-    struct Accel_result Accelerometre;
-    struct Bouton_result Bouton;
-} SENSOR;
-
-
 SENSOR readAccel(); 
 SENSOR readBouton1();
 
 SENSOR (*p[2])();
 
-
 void initialize_sensors()
 {
     accel.init();