Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help to implement websocket in g2100 #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions WiServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ extern "C" {
#define LF 10

// Strings stored in program memory (defined in strings.c)
extern const prog_char httpOK[];
extern const prog_char httpNotFound[];
extern const prog_char http10[];
extern const prog_char post[];
extern const prog_char get[];
extern const prog_char authBasic[];
extern const prog_char host[];
extern const prog_char userAgent[];
extern const prog_char contentTypeForm[];
extern const prog_char contentLength[];
extern const prog_char status[];
extern const prog_char base64Chars[];
extern const char /*prog_char*/ httpOK[];
extern const char /*prog_char*/ httpNotFound[];
extern const char /*prog_char*/ http10[];
extern const char /*prog_char*/ post[];
extern const char /*prog_char*/ get[];
extern const char /*prog_char*/ authBasic[];
extern const char /*prog_char*/ host[];
extern const char /*prog_char*/ userAgent[];
extern const char /*prog_char*/ contentTypeForm[];
extern const char /*prog_char*/ contentLength[];
extern const char /*prog_char*/ status[];
extern const char /*prog_char*/ base64Chars[];


/* GregEigsti - jrwifi submitted WiServer stability fix */
Expand Down
10 changes: 5 additions & 5 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
extern U8 local_ip[];
extern U8 gateway_ip[];
extern U8 subnet_mask[];
extern char ssid[];
extern const char ssid[];
extern U8 ssid_len;
extern const prog_char security_passphrase[];
extern const char /*prog_char*/ security_passphrase[];
extern U8 security_passphrase_len;
extern U8 security_type;
extern U8 wireless_mode;

extern prog_uchar wep_keys[];
extern const unsigned char /*prog_uchar*/ wep_keys[];

extern const prog_char webpage[];
extern const prog_char twitter[];
extern const char /*prog_char*/ webpage[];
extern const char /*prog_char*/ twitter[];
extern unsigned char mfg_id[4];

#define WIRELESS_MODE_INFRA 1
Expand Down