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:
102:fb982ff9da82
Parent:
101:edfeb8af206e
Child:
103:197fa7920ad8
--- a/MDM.cpp	Tue Jul 01 06:41:26 2014 +0000
+++ b/MDM.cpp	Thu Jul 03 18:44:32 2014 +0000
@@ -793,9 +793,9 @@
 
 int MDMParser::_cbCMIP(int type, const char* buf, int len, IP* ip)
 {
-    if ((type == TYPE_PLUS) && ip) {
+    if ((type == TYPE_UNKNOWN) && ip) {
         int a,b,c,d;
-        if (sscanf(buf, "\r\n+CMIP: " IPSTR, &a,&b,&c,&d) == 4)
+        if (sscanf(buf, "\r\n" IPSTR, &a,&b,&c,&d) == 4)
             *ip = IPADR(a,b,c,d);
     }
     return WAIT;