I have a basic understanding of using arduino boards for various small projects but needed wifi and a small form factor for an upcoming project so picked up a Photon. My end goal right now is to be able to turn my Sonoff on and off via a momentary switch attached to the Photon that is on the same WiFi network. I’m not looking for the code I would just like to pointed in the right direction.
I flashed my Sonoff so that it now runs ESPEasy and set it up so that I can control it from my browser using http://10.0.1.252/control?cmd=event,TurnOn to turn it on and http://10.0.1.252/control?cmd=event,TurnOff to turn it off. I have been reading about using POST or GET requests but none of the examples I find seem to send a similar command to how I currently have my Sonoff set up.
My question is what should I be looking at and reading about to be able to send these types of commands via the Photon?
Any recommendations are greatly appreciated. Thanks!