test to establish how we can share the project on MBED
Dependencies: BME280 BMP280 ELEC350-Coursework-2017 TextLCD
Fork of ELEC350-CWTEMPLATE-2017 by
Diff: serial_protocol/serial_protocol.cpp
- Revision:
- 12:4af6b1d09c90
- Parent:
- 11:573cf2feced3
- Child:
- 13:aa200749dba6
--- a/serial_protocol/serial_protocol.cpp Fri Dec 15 11:57:43 2017 +0000 +++ b/serial_protocol/serial_protocol.cpp Fri Dec 15 12:00:59 2017 +0000 @@ -58,6 +58,18 @@ } } + else if(strcmp(string1,"LOGGING")==0){ + if(strcmp(string2,"ON")==0){ + pc.printf("LOGGING ON\n"); + } + else if(strcmp(string2,"OFF")==0){ + pc.printf("LOGGING OFF\n"); + } + else{ + pc.printf("INVALID COMMAND\n"); + } + } + else if(strcmp(string1,"SETT")==0){ float number=0; sscanf(string2,"%f",&number);