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: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Revision 13:344a5e2b2f53, committed 2017-12-07
- Comitter:
- DuyLionTran
- Date:
- Thu Dec 07 17:11:37 2017 +0000
- Parent:
- 12:bc4f1214e097
- Child:
- 14:0129ac8844ee
- Commit message:
- nothing new
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 07 17:08:38 2017 +0000
+++ b/main.cpp Thu Dec 07 17:11:37 2017 +0000
@@ -61,7 +61,7 @@
/***************************************************************
* Structs/Classess
***************************************************************/
-static Serial pc(SERIAL_TX, SERIAL_RX);
+static Serial serial(USBTX, USBRX);
DigitalOut myled(LED1);
AnalogIn phSensor(SENSOR_1_PIN);
@@ -221,11 +221,11 @@
* Main
***************************************************************/
int main() {
- pc.baud(115200);
+ serial.baud(115200);
timer.start();
lastRead = 0;
- pc.printf("\r\nX-NUCLEO-IDW01M1 mbed Application\r\n");
- pc.printf("\r\nconnecting to AP\r\n");
+ serial.printf("\r\nX-NUCLEO-IDW01M1 mbed Application\r\n");
+ serial.printf("\r\nconnecting to AP\r\n");
NetworkInterface* network = easy_connect(true);
if (!network) {