91
Dependencies: ADXL362 ATParser MPL3115A2 TSL2561 mbed
Fork of Lab9-1 by
Diff: main.cpp
- Revision:
- 7:0f8f06ef71dd
- Parent:
- 6:074cf15af4a2
--- a/main.cpp Fri Apr 20 16:01:07 2018 +0000 +++ b/main.cpp Tue Apr 24 20:14:58 2018 +0000 @@ -27,10 +27,10 @@ ATParser at = ATParser(device, "\r\n", 256, 2000, false); char buffer[30]; char buffer1[30]; -// pc.baud(115200); + // pc.baud(115200); device.baud(115200); - // pc.printf("Hello"); + // pc.printf("Hello"); at.send("AT+NI=1,MTCDT-19400691\n\r") && at.recv("OK"); at.send("AT+NK=1,MTCDT-19400691\n\r") && at.recv("OK"); @@ -49,10 +49,9 @@ t=pressure_sensor.getTemperature(); sprintf(buffer1, "AT+SEND=%.4f\n\r", l); sprintf(buffer, "AT+SEND=%.1f,%.1f\n\r", p, t); - buffer[20] = '\0'; // pc.printf(buffer); at.send(buffer) && at.recv("OK"); at.send(buffer1) && at.recv("OK"); - wait(10); + wait(1800); } } \ No newline at end of file