GSwifiInterface library (interface for GainSpan Wi-Fi GS1011 modules) Please see https://mbed.org/users/gsfan/notebook/GSwifiInterface/

Dependents:   GSwifiInterface_HelloWorld GSwifiInterface_HelloServo GSwifiInterface_UDPEchoServer GSwifiInterface_UDPEchoClient ... more

Fork of WiflyInterface by mbed official

GainSpan Wi-Fi library

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

mbed RTOS supported.

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

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

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

mbed RTOS に対応しています。(mbed2.0)

Revision:
21:6431364fc667
Parent:
20:9bfb8a13010c
Child:
22:d25a5a0d2497
diff -r 9bfb8a13010c -r 6431364fc667 GSwifi/GSwifi.cpp
--- a/GSwifi/GSwifi.cpp	Thu Jun 05 06:06:19 2014 +0000
+++ b/GSwifi/GSwifi.cpp	Thu Jun 05 06:12:59 2014 +0000
@@ -424,8 +424,12 @@
     strncpy(_state.ip, ip, sizeof(_state.ip));
     strncpy(_state.netmask, netmask, sizeof(_state.netmask));
     strncpy(_state.gateway, gateway, sizeof(_state.gateway));
-    strncpy(_state.nameserver, dns, sizeof(_state.nameserver));
-    strncpy(_state.name, name, sizeof(_state.name));
+    if (dns) {
+        strncpy(_state.nameserver, dns, sizeof(_state.nameserver));
+    }
+    if (name) {
+        strncpy(_state.name, name, sizeof(_state.name));
+    }
     return 0;
 }