Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more
Fork of GSwifi by
Revision 7:b75b7fc144ff, committed 2012-08-21
- 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

GainSpan Wi-Fi GS1011