lora hide from web interface
This commit is contained in:
parent
782d212546
commit
dfe772bd19
|
|
@ -450,17 +450,13 @@ static HTTP_IO_RESULT HTTPPostSystemSettings(httpd_req_t *req, char *PostData)
|
|||
{
|
||||
if (!strcmp(tmp, (const char*) "1"))
|
||||
{
|
||||
ESP_LOGI(TAG, "Got command F1 send test lora");
|
||||
const char test[] = { "LoRaWAN test message" };
|
||||
LORA_DATA_SEND_STRUCT dss;
|
||||
dss.raw_data_ptr = test;
|
||||
dss.data_length = sizeof(test) + 1;
|
||||
LORASendData(&dss);
|
||||
return HTTP_IO_DONE_NOREFRESH;
|
||||
}
|
||||
else if (!strcmp(tmp, (const char*) "2"))
|
||||
{
|
||||
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
||||
PPPModemGetRSSI();
|
||||
#endif
|
||||
return HTTP_IO_DONE_NOREFRESH;
|
||||
}
|
||||
else if (!strcmp(tmp, (const char*) "3"))
|
||||
|
|
|
|||
|
|
@ -625,7 +625,11 @@ static void HTTPPrint_hide_mqtt2(char *VarData, void *arg)
|
|||
|
||||
static void HTTPPrint_hide_lora(char *VarData, void *arg)
|
||||
{
|
||||
#ifdef CONFIG_WEBGUIAPP_LORAWAN_ENABLE
|
||||
snprintf(VarData, MAX_DYNVAR_LENGTH, " ");
|
||||
#else
|
||||
snprintf(VarData, MAX_DYNVAR_LENGTH, "hide");
|
||||
#endif
|
||||
}
|
||||
|
||||
static void HTTPPrint_hide_eth(char *VarData, void *arg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user