iot_water_monitor_v2

Dependencies:   easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code

Files at this revision

API Documentation at this revision

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) {