lib_Transmission_Serial_example

Dependencies:   lib_Transmission

Committer:
YSI
Date:
Tue Apr 27 13:14:01 2021 +0000
Revision:
8:bea3564ffb56
Parent:
5:f74f0e2f5106
Child:
9:89dc9f16aa06
up

Who changed what in which revision?

UserRevisionLine numberNew contents of line
YSI 0:5d2c38c99ce6 1 #include "main.h"
YSI 0:5d2c38c99ce6 2
YSI 0:5d2c38c99ce6 3 int main(void)
YSI 0:5d2c38c99ce6 4 {
YSI 8:bea3564ffb56 5 while(1);
YSI 0:5d2c38c99ce6 6 }
YSI 0:5d2c38c99ce6 7
YSI 4:0e42ea16a9cb 8 string processing(string cmd)
YSI 0:5d2c38c99ce6 9 {
YSI 4:0e42ea16a9cb 10 ostringstream ssend;
YSI 4:0e42ea16a9cb 11 ssend << fixed;
YSI 4:0e42ea16a9cb 12 ssend.precision(2);
YSI 4:0e42ea16a9cb 13 if(cmd.empty());
YSI 4:0e42ea16a9cb 14 else if(cmd == "*IDN?")
YSI 4:0e42ea16a9cb 15 ssend << MBED_PROJECT << ", Mbed OS " << MBED_VERSION << ", Version dated, " << __DATE__ << ", " << __TIME__;
YSI 4:0e42ea16a9cb 16 return ssend.str();
YSI 0:5d2c38c99ce6 17 }