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:
6:775aef3f1d1f
Parent:
4:c959dd4c5fe8
Child:
7:9aa830f5811e
--- a/GPS.cpp	Sat Nov 02 16:08:20 2013 +0000
+++ b/GPS.cpp	Sat Nov 09 12:20:25 2013 +0000
@@ -246,9 +246,13 @@
 
 int GPSI2C::getMessage(char* buf, int len)
 {
-    int sz = _get(buf, len);
+    // fill the pipe
+    int sz = _pipe.free();
+    if (sz) 
+        sz = _get(buf, sz);
     if (sz) 
         _pipe.put(buf, sz);
+    // now parse it
     return _getMessage(&_pipe, buf, len);   
 }