mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 23:25:35 +00:00
fix some warnings
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
#include "../new_common.h"
|
||||
#include "ctype.h"
|
||||
#include "lwip/sockets.h"
|
||||
#include "lwip/ip_addr.h"
|
||||
#include "lwip/inet.h"
|
||||
#include "../logging/logging.h"
|
||||
#include "new_http.h"
|
||||
|
||||
static void tcp_server_thread( beken_thread_arg_t arg );
|
||||
static void tcp_client_thread( beken_thread_arg_t arg );
|
||||
@ -29,11 +31,11 @@ static void tcp_client_thread( beken_thread_arg_t arg )
|
||||
OSStatus err = kNoErr;
|
||||
int fd = (int) arg;
|
||||
int len = 0;
|
||||
fd_set readfds, errfds, readfds2;
|
||||
//fd_set readfds, errfds, readfds2;
|
||||
char *buf = NULL;
|
||||
char *reply = NULL;
|
||||
int replyBufferSize = 10000;
|
||||
int res;
|
||||
//int res;
|
||||
//char reply[8192];
|
||||
|
||||
//my_fd = fd;
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
|
||||
|
||||
#include "../new_common.h"
|
||||
#include "str_pub.h"
|
||||
#include "new_http.h"
|
||||
#include "../new_pins.h"
|
||||
#include "../new_cfg.h"
|
||||
#include "../ota/ota.h"
|
||||
|
||||
/*
|
||||
GET / HTTP/1.1
|
||||
@ -180,13 +183,15 @@ const char *htmlIndex = "<select name=\"cars\" id=\"cars\">\
|
||||
<option value=\"1\">qqqqqq</option>\
|
||||
<option value=\"2\">qqq</option>\
|
||||
</select>";
|
||||
//const char *htmlPinRoles = "<option value=\"1\">Relay</option>\
|
||||
//<option value=\"2\">Relay_n</option>\
|
||||
//<option value=\"3\">Button</option>\
|
||||
//<option value=\"4\">Button_n</option>\
|
||||
//<option value=\"5\">LED</option>\
|
||||
//<option value=\"6\">LED_n</option>\
|
||||
//</select>";
|
||||
/*
|
||||
const char *htmlPinRoles = "<option value=\"1\">Relay</option>\
|
||||
<option value=\"2\">Relay_n</option>\
|
||||
<option value=\"3\">Button</option>\
|
||||
<option value=\"4\">Button_n</option>\
|
||||
<option value=\"5\">LED</option>\
|
||||
<option value=\"6\">LED_n</option>\
|
||||
</select>";
|
||||
*/
|
||||
|
||||
const char *htmlPinRoleNames[] = {
|
||||
" ",
|
||||
|
||||
@ -8,6 +8,7 @@ extern const char htmlEnd[];
|
||||
extern const char htmlReturnToMenu[];
|
||||
|
||||
int HTTP_ProcessPacket(const char *recvbuf, char *outbuf, int outBufSize);
|
||||
void http_setup(char *o, const char *type);
|
||||
|
||||
|
||||
// callback function for http
|
||||
|
||||
Reference in New Issue
Block a user