mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 12:55:43 +00:00
bl602 rem warnings p1, wifi callbacks
This commit is contained in:
@ -377,7 +377,6 @@ int http_fn_cfg_wifi(http_request_t *request) {
|
||||
// for a test, show password as well...
|
||||
const char *cur_ssid, *cur_pass;
|
||||
char tmpA[128];
|
||||
int i;
|
||||
|
||||
http_setup(request, httpMimeTypeHTML);
|
||||
poststr(request,htmlHeader);
|
||||
@ -407,6 +406,8 @@ int http_fn_cfg_wifi(http_request_t *request) {
|
||||
#elif PLATFORM_BL602
|
||||
poststr(request,"TODO BL602<br>");
|
||||
#elif PLATFORM_BK7231T
|
||||
int i;
|
||||
|
||||
AP_IF_S *ar;
|
||||
uint32_t num;
|
||||
|
||||
@ -418,7 +419,8 @@ int http_fn_cfg_wifi(http_request_t *request) {
|
||||
}
|
||||
tuya_hal_wifi_release_ap(ar);
|
||||
#elif PLATFORM_BK7231N
|
||||
// poststr(request,"TODO: BK7231N support for scan<br>");
|
||||
int i;
|
||||
|
||||
AP_IF_S *ar;
|
||||
uint32_t num;
|
||||
|
||||
@ -471,7 +473,6 @@ int http_fn_cfg_name(http_request_t *request) {
|
||||
// for a test, show password as well...
|
||||
const char *shortName, *name;
|
||||
char tmpA[128];
|
||||
int i;
|
||||
|
||||
http_setup(request, httpMimeTypeHTML);
|
||||
poststr(request,htmlHeader);
|
||||
@ -800,7 +801,6 @@ int http_fn_startup_command(http_request_t *request) {
|
||||
}
|
||||
int http_fn_uart_tool(http_request_t *request) {
|
||||
char tmpA[256];
|
||||
byte results[128];
|
||||
int resultLen = 0;
|
||||
http_setup(request, httpMimeTypeHTML);
|
||||
poststr(request,htmlHeader);
|
||||
@ -811,6 +811,8 @@ int http_fn_uart_tool(http_request_t *request) {
|
||||
|
||||
if(http_getArg(request->url,"data",tmpA,sizeof(tmpA))) {
|
||||
#ifndef OBK_DISABLE_ALL_DRIVERS
|
||||
byte results[128];
|
||||
|
||||
hprintf128(request,"<h3>Sent %s!</h3>",tmpA);
|
||||
if(0){
|
||||
TuyaMCU_Send((byte *)tmpA, strlen(tmpA));
|
||||
@ -1000,7 +1002,6 @@ int http_fn_cm(http_request_t *request) {
|
||||
}
|
||||
|
||||
int http_fn_cfg(http_request_t *request) {
|
||||
int i,j,k;
|
||||
http_setup(request, httpMimeTypeHTML);
|
||||
poststr(request,htmlHeader);
|
||||
poststr(request,g_header);
|
||||
@ -1019,12 +1020,15 @@ int http_fn_cfg(http_request_t *request) {
|
||||
poststr(request,"<form action=\"startup_command\"><input type=\"submit\" value=\"Change startup command text\"/></form>");
|
||||
|
||||
#if PLATFORM_BK7231T | PLATFORM_BK7231N
|
||||
k = config_get_tableOffsets(BK_PARTITION_NET_PARAM,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_NET_PARAM: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
k = config_get_tableOffsets(BK_PARTITION_RF_FIRMWARE,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_RF_FIRMWARE: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
k = config_get_tableOffsets(BK_PARTITION_OTA,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_OTA: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
{
|
||||
int i,j,k;
|
||||
k = config_get_tableOffsets(BK_PARTITION_NET_PARAM,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_NET_PARAM: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
k = config_get_tableOffsets(BK_PARTITION_RF_FIRMWARE,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_RF_FIRMWARE: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
k = config_get_tableOffsets(BK_PARTITION_OTA,&i,&j);
|
||||
hprintf128(request,"BK_PARTITION_OTA: bOk %i, at %i, len %i<br>",k,i,j);
|
||||
}
|
||||
#endif
|
||||
|
||||
poststr(request,"<a href=\"/app\" target=\"_blank\">Launch Web Application</a><br/>");
|
||||
|
||||
Reference in New Issue
Block a user