Not sure if using php really makes sense… wanted to quickly try controlling the core from a web page/server. Bit messy but hope it is useful to someone else.
Your core should be running tinker when you receive it, so no need to change anything on the core itself. You just need to connect it to the web, [breathing cyan].
You will need to know and change two variables:
a) $my_access_token ; this is your access token (find this in the build tool under SETTINGS)
b) $my_device ; your cores device id (find this in the build tool under CORES)
/** i changed these variables to text box in the form
This is a basic form that can control the little blue led on/off which is located on D7, just ftp it to your web server. Really consists of 3 parts:
- a form to set the D7 bit state
- building the url from variables
- the cURL function