Kazushi Mukaiyama / GSwifi

Fork of GSwifi_old by gs fan

Files at this revision

API Documentation at this revision

Comitter:
gsfan
Date:
Tue Aug 21 07:38:34 2012 +0000
Parent:
6:a423f0d197de
Child:
8:bce9e7e51a0d
Commit message:
bugfix udp send

Changed in this revision

GSwifi.cpp Show annotated file Show diff for this revision Revisions of this file
GSwifi.h Show annotated file Show diff for this revision Revisions of this file
--- a/GSwifi.cpp	Thu Aug 16 05:01:19 2012 +0000
+++ b/GSwifi.cpp	Tue Aug 21 07:38:34 2012 +0000
@@ -1027,7 +1027,7 @@
         _gs_failure = 0;
 #ifdef GS_BULK
         _gs.printf("\x1bY%X", cid);
-        _gs.printf("%d.%d.%d.%d %d:", host.getIp()[0], host.getIp()[1], host.getIp()[2], host.getIp()[3], host.getPort());
+        _gs.printf("%d.%d.%d.%d:%d:", host.getIp()[0], host.getIp()[1], host.getIp()[2], host.getIp()[3], host.getPort());
         _gs.printf("%04d", len);
         for (i = 0; i < len; i ++) {
             _gs_putc(buf[i]);
@@ -1035,7 +1035,7 @@
         }
 #else
         _gs.printf("\x1bU%X", cid);
-        _gs.printf("%d.%d.%d.%d %d:", host.getIp()[0], host.getIp()[1], host.getIp()[2], host.getIp()[3], host.getPort());
+        _gs.printf("%d.%d.%d.%d:%d:", host.getIp()[0], host.getIp()[1], host.getIp()[2], host.getIp()[3], host.getPort());
         for (i = 0; i < len; i ++) {
             if (buf[i] >= 0x20 && buf[i] < 0x7f) {
                 _gs_putc(buf[i]);
--- a/GSwifi.h	Thu Aug 16 05:01:19 2012 +0000
+++ b/GSwifi.h	Tue Aug 21 07:38:34 2012 +0000
@@ -10,6 +10,9 @@
  * module configuration: ATB=115200
  */
 
+#ifndef _GSWIFI_H_
+#define _GSWIFI_H_
+
 #include "mbed.h"
 #include "RingBuffer.h"
 #include "host.h"
@@ -332,3 +335,5 @@
     struct GS_Socket _gs_sock[16];
     time_t _time;
 };
+
+#endif