Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ADXL362 ATParser MPL3115A2 TSL2561 mbed
Fork of Lab91 by
Revision 7:0f8f06ef71dd, committed 2018-04-24
- Comitter:
- fanbsun
- Date:
- Tue Apr 24 20:14:58 2018 +0000
- Parent:
- 6:074cf15af4a2
- Commit message:
- 91
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
