Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enumerating parameters - class httpsserver::ResourceParameters' has no member named 'beginQueryParameters' #81

Copy link
Copy link
Closed
@Twilight-Logic

Description

@Twilight-Logic
Issue body actions

Describe Your Goal
Enumerate parameters returned to the webserver from a submitted page

What Does Your Project Look Like
ESP32 library version 1.0.4
Hessel ESP_HTTPS_Server library version 0.3.1

Hessel HTTPS_Server downloaded via Manage Libraries in the Arduino IDE.

If you can boil your question down to a minimal working example, please do so and share the code here:

void showArgs(HTTPRequest * req) {
  ResourceParameters * params = req->getParams();
 
  for(auto idx = params->beginQueryParameters(); idx != params->endQueryParameters(); ++idx) {
    Serial.print((*idx).first + ":\t");
    Serial.println((*idx).second);
  }

// Original ESP8266 code:
//  for (uint8_t i = 0; i < acnt; i++) {
//    AsyncWebParameter* p = request->getParam(i);
//    Serial.print(p->name() + ":\t");
//    Serial.println(p->value());
//  }
}

ESP32 Module
Please provide specifications of your module

ESP32 - NodeMCU-32S with ESP-WROOM-32

Software (please complete the following information if applicable)

Arduino IDE version 1.8.12
Linux Mint 19.2

Additional context
On the ESP8266 I had a fairly simple routine to show all the submitted parameters for diagnostic purposes. I am trying to write the equivalent routine for the ESP32 and following the example here:

https://github.com/fhessel/esp32_https_server/blob/master/examples/Parameters/Parameters.ino

See lines 282 to 293. However, it seems that beginQueryParameters() and probably endQueryParameters() is not available ? Having had a look at the "documentation" I could not find such a class member in the header file ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.