I was using a GET request on the Build in Web form to post the message to the form, which then gets sent to the MQTT feed.
What I found is that on my phone, sending a message, then moving onto another app, if I open chrome again, it refreshes the page and resends the same message, because its contained in the URL as a get request... /message.html?msg=GoodMorning
So I either need to clear the url, or use a post.
I like the get method, because that opens the door to also send messages just by typing the url and adding the required parameters.
I found this document.
https://stackoverflow.com/questions/22753052/remove-url-parameters-without-refreshing-page
Since I already handed off the devices, I'll have to set up something similar to test on.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.