C027_SupportTest_xively_locationで使用しているC027用ライブラリ

Fork of C027_Support by u-blox

下記のプログラムC027_SupportTest_xively_locationで使用しているC027用ライブラリです。

Import programC027_SupportTest_xively_location

インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラム。   CQ publishing Interface 2014.10 issue, C027 3G test program.

オリジナルのライブラリは下記を参照してください。

Import libraryC027_Support

support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Revision:
101:edfeb8af206e
Parent:
99:3116d3e900ed
Child:
102:fb982ff9da82
--- a/MDM.cpp	Tue Jul 01 05:46:06 2014 +0000
+++ b/MDM.cpp	Tue Jul 01 06:41:26 2014 +0000
@@ -309,12 +309,11 @@
             pin = 1; ::wait_ms(100);
             
             // purge any messages 
-            while (WAIT != waitFinalResp(NULL,NULL,0))
-                /* nothing */;
+            purge();
             
-            // check interface and disable local echo
+            // check interface
             sendFormated("AT\r\n");
-            int r = waitFinalResp(NULL,NULL,500);
+            int r = waitFinalResp(NULL,NULL,1000);
             if(RESP_OK == r) break;
         }
         if (i < 0) {