diff --git a/src/mavesp8266_httpd.cpp b/src/mavesp8266_httpd.cpp index efcb286..22a41b5 100644 --- a/src/mavesp8266_httpd.cpp +++ b/src/mavesp8266_httpd.cpp @@ -180,19 +180,101 @@ void handle_getParameters() String message = FPSTR(kHEADER); message += "
Parameters
Name | Value |
"; - message += getWorld()->getParameters()->getAt(i)->id; - message += " | "; - unsigned long val = 0; - if(getWorld()->getParameters()->getAt(i)->type == MAV_PARAM_TYPE_UINT32) - val = (unsigned long)*((uint32_t*)getWorld()->getParameters()->getAt(i)->value); - else if(getWorld()->getParameters()->getAt(i)->type == MAV_PARAM_TYPE_UINT16) - val = (unsigned long)*((uint16_t*)getWorld()->getParameters()->getAt(i)->value); - else - val = (unsigned long)*((int8_t*)getWorld()->getParameters()->getAt(i)->value); - message += ""; - message += val; - message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += MAVESP8266_VERSION_MAJOR; + message += "."; + message += MAVESP8266_VERSION_MINOR; + message += "."; + message += MAVESP8266_VERSION_BUILD; + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + if(getWorld()->getParameters()->getWifiMode() == WIFI_MODE_AP) + { + message += "AP"; + } + else + { + message += "STA"; + } + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += getWorld()->getParameters()->getLocalIPAddressInString(); + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += getWorld()->getParameters()->getWifiSsid(); + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += getWorld()->getParameters()->getWifiPassword(); + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += getWorld()->getParameters()->getWifiStaSsid(); + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + message += ""; + message += getWorld()->getParameters()->getWifiStaPassword(); + message += " |
"; + message += getWorld()->getParameters()->getAt(i)->id; + message += " | "; + unsigned long val = 0; + if(getWorld()->getParameters()->getAt(i)->type == MAV_PARAM_TYPE_UINT32) + val = (unsigned long)*((uint32_t*)getWorld()->getParameters()->getAt(i)->value); + else if(getWorld()->getParameters()->getAt(i)->type == MAV_PARAM_TYPE_UINT16) + val = (unsigned long)*((uint16_t*)getWorld()->getParameters()->getAt(i)->value); + else + val = (unsigned long)*((int8_t*)getWorld()->getParameters()->getAt(i)->value); + + message += ""; + message += val; + message += " |