I have an Internet Button that when clicked…
- sends a
Spark.publish()
… - that triggers a webhook…
- that publishes a message to a Slack channel.
Phew, that all it does in a sentence.
The problem is, I’m not near that device, someone clicks it for me. Sometimes, I don’t get notified but the person tells me it did click the button. I don’t if that person’s telling the truth or if it’s a wifi problem or something else.
How can I debug this? Can I log somewhere each time someone presses a button? I can use wifi for that (since that’s what I’m testing). Can I log into a file? How? How can I read it later?
Could it a weak wifi signal? Maybe putting the device somewhere with a clear view of the wifi hotspot?