request.find() which gets the value instead of looking for a specific one

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Anonymmm
Posts: 9
Joined: Sat Jun 13, 2020 11:32 am

request.find() which gets the value instead of looking for a specific one

Post by Anonymmm » Wed Jun 17, 2020 10:41 am

Hello again,
Since my previous question got no answers, I shall attempt to make it much simpler to answer. A simple micropython web server tutorial used this code to see if a button was pressed:

Code: Select all

led_on = request.find('/?led=on')
Is there any alternative of this "request" command that just pulls what is send in the url, instead of looking for something specific?

Post Reply