![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
tp_iot
Dependencies: mbed DHT HC_SR04_Ultrasonic_Library
Diff: main.cpp
- Revision:
- 5:0186f7e2053e
- Parent:
- 4:74e0c3de6749
- Child:
- 6:cd3b177a3e33
diff -r 74e0c3de6749 -r 0186f7e2053e main.cpp --- a/main.cpp Wed May 24 15:38:43 2017 +0000 +++ b/main.cpp Wed May 24 15:43:22 2017 +0000 @@ -18,7 +18,7 @@ //std::string query("AT$SS=00 12 FF 42/r/n"); - char query[15] = "AT$SS=0012FF42"; + char* query = "AT$SS=0012FF42"; serial_td1208.baud(9600); serial_td1208.format(); @@ -35,7 +35,7 @@ else led = 1; - serial_td1208.printf("%s", query); + serial_td1208.printf("AT$SS=0012FF42"); wait(10); // 750 ms } }