PostText and and ESP32 button

Good morning,
I want to send variables to a URL.
but when I use Web1.posttext with a variable it doesn't work. On the other hand, if I use it with text it works.

Can you tell me what's wrong with this block?

Make sure you use the Web.UriEncode function to encode parameter inputs. For example:

It still does not work :frowning:

image

On the other hand, I didn't put anything with initialize global URL. Should I hang something on it?
image

If yes, what?

image

This solution doesn't work either. No information is sent to the website :frowning:

I would like when I press the ESP32 button the following information is sent such as:
http://myurl/id=xxxxxxxxxx&long=xx.xx&lat=xx.xx

show what works.

Do you have to use POST ? Could you use GET and just join your parameters to the url ?

You do not say/show how your website is receiving the data, php ?

this launches a notification on the website in question specifying the id and the latitude and longitude

OK, but how ?

For exemple, when I do this:
image

I have this on my web site:
image

I just found the error. A small space that was slipped where it shouldn't be :frowning:
Thank you all for your help !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.