Chuck Swiger / Mbed 2 deprecated WNC_Pubnub_obd2b_pub

Dependencies:   FXOS8700CQ Pubnub_mbed2_sync WNCInterface mbed-rtos mbed

Revision:
1:610520d32d22
Parent:
0:d2425a595807
Child:
2:fe8e935b9342
--- a/main.cpp	Tue Dec 20 16:44:32 2016 +0000
+++ b/main.cpp	Wed Dec 21 20:24:23 2016 +0000
@@ -327,7 +327,7 @@
   char i=0;
   
   // wait for something on com port
-  while((b=obd2.getc())!=PROMPT && i<size)      // this blocks! Arduino Serial.read would return -1
+  while((b=obd2.getcNb())!=PROMPT && i<size)      // use MODSERIAL::getcNb() non-blocking to match Arduino Serial.read() behavior
   {
     if(b>=' ')
       str[i++]=b;