I just ordered my particle photon, and Im in the process of making a baby/sound monitor. So the way it’ll work is, I got this webpage (www.myowndomain.com) which has 2 files. Index.php and update.php. Index.php reads 1 value from a database and outputs it in html and plays a sound if value is over a threshold yadayadayada… and update.php updates the database with whatever is in ?value=INT and then we’ll be able to read the page when we are walking the dog or whatever.
So my question is, how do I make the photon go to www.myowndomain.com/babyalarm/update.php?value=ValueReadFromMicrophoneOnApin ? The majority of the code I can do myself. I’ll make a variable that holds the value from the pin, I’ll check the deviation from last time it was read, and if it’s greater than X I’d like the photon to “go to that page”.
I’ve done a little arduinoing before, but never anything internety, so a pointer/link in the right direction would be really helpful :-)!
Thanks for the reply ninjatil. But Im not looking to stream audio. Im just looking to update my mysql database by running a script on my server. I just need the photon to go to my webpage, like you would in a normal browser. This is the code Im toying with to get it to work if that gives any indication of what Im trying to do:
Oh and @ScruffR asked about HTTPS because it’s not (reasonably, or easily) possible to make HTTPS requests directly from the Photon… for that you should use a webhook. But if local on your own network, and you don’t care about data security while in-transit, then the HTTPClient library will work fine.