GainSpan Wi-Fi library see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Dependents:   GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more

Fork of GSwifi by gs fan

GainSpan Wi-Fi library

The GS1011 is an ultra low power 802.11b wireless module from GainSpan.

see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

/media/uploads/gsfan/gs_im_002.jpg /media/uploads/gsfan/gs1011m_2.jpg

ゲインスパン Wi-Fi モジュール ライブラリ

ゲインスパン社の低電力 Wi-Fiモジュール(無線LAN) GS1011 シリーズ用のライブラリです。

解説: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Revision:
26:b347ee3a1087
Parent:
25:f6e5622d2930
Child:
29:1c4419512941
--- a/CBuffer.h	Mon Feb 11 06:01:46 2013 +0000
+++ b/CBuffer.h	Fri Feb 22 01:05:10 2013 +0000
@@ -37,13 +37,15 @@
         return (read == write);
     };
 
-    void queue(T k) {
+    bool queue(T k) {
         if (isFull()) {
-            read++;
-            read %= size;
+//            read++;
+//            read %= size;
+            return false;
         }
         buf[write++] = k;
         write %= size;
+        return true;
     }
     
     void flush() {