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.
Fork of GSwifi_old by
GSwifi_net.h
- Committer:
- gsfan
- Date:
- 2012-11-06
- Revision:
- 19:cad912f5a6ba
- Parent:
- 18:4b97804c37d1
- Child:
- 20:151b5a4fdd29
File content as of revision 19:cad912f5a6ba:
/**
* Gainspan wi-fi module library for mbed
* Copyright (c) 2012 gsfan
* Released under the MIT License: http://mbed.org/license/mit
*/
/** @file
* @brief Gainspan wi-fi module library for mbed
* GS1011MIC, GS1011MIP, GainSpan WiFi Breakout, etc.
* module configuration: ATB=115200
*/
#ifndef _GSWIFI_NET_H_
#define _GSWIFI_NET_H_
#include "mbed.h"
#include "host.h"
// GSwifi_smtp.cpp
#define SMTP_TIMEOUT 15000
// GSwifi_httpd.cpp
#define HTTPD_TIMEOUT 15000
#define HTTPD_HANDLE 10
#define HTTPD_BUF_SIZE 100
#define HTTPD_URI_SIZE 50
#define HTTPD_KEEPALIVE 5
struct GS_httpd {
int mode;
int type;
char *buf; // body
int len; // length of buf
char *uri;
char *file;
char *query;
int length; // content-length
int keepalive;
Host host;
};
typedef void (*onHttpdCgiFunc)(int cid, GS_httpd *gshttpd);
struct GS_httpd_handler {
char *uri;
char *dir;
onHttpdCgiFunc onHttpCgi;
};
#endif
