Single-button operation

I’m stumped.

Here are some straws to grab at …

You use a web GET request. I’ve seen others do a POST request.
Aren’t button pushes associated with POST requests?
Does it make a difference?
I don’t know.

You use mDNS to address “ESP8266” in your sketch. I don’t know why you are doing this, if all your addresses are hard wired for a local network, and mDNS is meant to act as a local name server. I noticed in my mDNS reading that there are built in delays in that protocol for discovering local names, if you want to grab at another straw.

You didn't mention which browser interaction works for you:

  • pressing a button, or
  • requesting a URL with extended options after the IP address.

I see separate code paths for them.

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