tp_iot
Dependencies: mbed DHT HC_SR04_Ultrasonic_Library
Revision 3:fcc03d78faf4, committed 2017-05-24
- Comitter:
- Cornetin
- Date:
- Wed May 24 14:23:54 2017 +0000
- Parent:
- 2:d1555ccd1c6d
- Child:
- 4:74e0c3de6749
- Commit message:
- commit
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed May 24 13:54:35 2017 +0000
+++ b/main.cpp Wed May 24 14:23:54 2017 +0000
@@ -14,9 +14,13 @@
float meas;
Serial serial_td1208(PA_2, PA_3);
- std::string init("AT");
- std::string query("AT$SS=00 12 FF 42");
- serial_td1208.printf("%s", init);
+ //std::string init("AT");
+
+ std::string query("AT$SS=00 12 FF 42/r/n");
+
+ serial_td1208.baud(9600);
+ serial_td1208.format();
+ //serial_td1208.printf("%s", init);
printf("\nAnalogIn example\n");
@@ -37,6 +41,8 @@
led = 0;
else
led = 1;
+
+ //serial_rd1208.write(query.c_str(), query.length(), );
serial_td1208.printf("%s", query);
wait(10); // 750 ms
}
