Arduino-esp32: off-topic

Created on 22 Oct 2019  路  24Comments  路  Source: espressif/arduino-esp32

removed because of troll posts

Most helpful comment

@atanisoft he is still trolling. Wah, Wah, Do it for me, I can't do it for myself. You must do it for me because I don't want to learn how to do it for myself. Wah, Wah! Like Barbie said "programming is hard, I'm just a girl!"

All 24 comments

Look at the HelloServer example

You can use the following function:
arg // get request argument value by name

@dsyleixa those are basic tasks that are not specific to esp32 and should not be posted as an issue. Instead it should be posted to the forum on www.esp32.com

@dsyleixa Feel free to submit a PR for examples you feel are missing.

@dsyleixa Re-reading your issue here, it seems you are needing HTML help and not something specific to the ESP32. I'd suggest learning how to do what you are after in the HTML code itself.

HTTP GET/POST would only be AFTER the user has entered whatever text they are entering in the text input box in the HTML form. The server side does not care or know about any keyboard input, once the request reaches the server the data is complete and no user input possible.

You will need to do any special keyboard input handling on the HTML side only.

You will never find HTTP examples in libraries/WiFi/examples. WiFi examples are TCP/UDP connections over WiFi.

For HTTP examples you can look here:
Server: https://github.com/espressif/arduino-esp32/tree/master/libraries/WebServer/examples
Client: https://github.com/espressif/arduino-esp32/tree/master/libraries/HTTPClient/examples

@dsyleixa do you have an example of an other Arduino library that supplies such example?

@dsyleixa you will need to provide a valid use case, as I've mentioned above what you are after is not feasible. You are mixing up client side and server side. GET/POST are server side and the keyboard would be client side.

This is also not the first time you have blown off valid criticism and requests for you to write some snippets of code to solve your issues.

@dsyleixa which part did you not understand of my post? By the time the GET/POST request reaches the ESP32 there is no keyboard input possible. The only time a keyboard can be involved is BEFORE the GET/POST request is sent and that would all be handled inside the HTML code that doesn't run on the ESP32, it runs inside the browser.

SimpleAuthentication shows a pretty straightforward form POST transaction.

You need to clarify what your issue is. You are being quite hostile here, and not accepting our help. We would like to help you.

read keyboard string inputs where? In the browser? @atanisoft has already explained that esp32 has nothing to do with the browser keyboard. The webserver provides a page with a form in it, and the client sends a POST request with the form results. The server can then process the results. SimpleAuthentication does this. Examples are to provide reference for the methods, not to solve your exact problem.

I think what @dsyleixa means is that the available examples don't ship with the required HTML forms for testing

  String content = "<html><body><form action='/login' method='POST'>To log in, please use : admin/admin<br>";
  content += "User:<input type='text' name='USERNAME' placeholder='user name'><br>";
  content += "Password:<input type='password' name='PASSWORD' placeholder='password'><br>";
  content += "<input type='submit' name='SUBMIT' value='Submit'></form>" + msg + "<br>";
  content += "You also can go <a href='/inline'>here</a></body></html>";
  server.send(200, "text/html", content);

@dsyleixa nobody is going to do the work FOR you.. you will need to invest some time to write what you are after.

If I understand you correctly, you want an example of HTML form which can be filled by user, sent to ESP32 server via GET or POST, then ESP32 extracts user data and does something with it.

But why do you want these examples to be complete? Isn't combining existing examples enough? What problem are you trying to solve?

There is no need to duplicate something like https://www.w3schools.com/ throughout every project that provides a webserver like example.

If there is a specific example you would like to contribute via a PR it can be reviewed for inclusion.

@dsyleixa Many of us have tried repeatedly to assist you and yet you continue to disregard any of our advice and continue to copy/paste the same request over and over again. I will assert again that YOU need to take an active part in resolving YOUR perceived lack of examples, as we have said there are examples available (many of which are not esp32 specific) that can be used to accomplish what you are after, not all of those examples within this repository (and nor should they be).

@atanisoft he is still trolling. Wah, Wah, Do it for me, I can't do it for myself. You must do it for me because I don't want to learn how to do it for myself. Wah, Wah! Like Barbie said "programming is hard, I'm just a girl!"

"Do it for me, I don't know how" is the same a "I just requested additional examples"

Thumbs down just show my accuracy. If I was incorrect It would not hurt. I am one, @atanisoft and @lbernstone are other.

In my opinion, there's enough information in documentation and examples at least to get started. One can always write more and more examples, it can never end.

Show us some effort, post some code you've written which should work from your point of view, but it doesn't. Search ESP32 forums, there are some on the internet.

Currently, you don't want to lift a finger, you said you can't write the examples yourself. Why do you expect someone to do it instead of you? Looks like you're the only one who needs more examples.

Anyway, the devs have more urgent matters at the moment than writing more examples and teaching someone who doesn't want to learn.

I think this issue should be closed, this is not a support forum.

@dsyleixa

removed because of trolling posts

The only "trolling" was by you, your unwillingness to contribute to a meaningful conversation about examples which you have a desire to see included. Unfortunately you have deleted all of your posts to this issue and closed it. So I'm guessing you don't really want assistance afterall but instead wanted someone to do all of the work for you.

this was a fun read :) was just about to moderate the hell out of this and it got closed :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zuqualla picture zuqualla  路  4Comments

jhowkis picture jhowkis  路  3Comments

DrewHoyt picture DrewHoyt  路  4Comments

merlinschumacher picture merlinschumacher  路  4Comments

paramono picture paramono  路  4Comments