test to establish how we can share the project on MBED

Dependencies:   BME280 BMP280 ELEC350-Coursework-2017 TextLCD

Fork of ELEC350-CWTEMPLATE-2017 by University of Plymouth - Stages 1, 2 and 3

Revision:
11:573cf2feced3
Parent:
10:47e6166f0797
Child:
12:4af6b1d09c90
--- a/serial_protocol/serial_protocol.cpp	Fri Dec 15 11:50:57 2017 +0000
+++ b/serial_protocol/serial_protocol.cpp	Fri Dec 15 11:57:43 2017 +0000
@@ -46,6 +46,18 @@
         }                
     }
     
+    else if(strcmp(string1,"STATE")==0){
+        if(strcmp(string2,"ON")==0){
+            pc.printf("SAMPLING ON\n");
+        }
+        else if(strcmp(string2,"OFF")==0){
+            pc.printf("SAMPLING OFF\n");
+        }
+        else{
+            pc.printf("INVALID COMMAND\n");
+        }
+    }
+    
     else if(strcmp(string1,"SETT")==0){
         float number=0;
         sscanf(string2,"%f",&number);