          },
          "mydevices": true
      }
+
+     {
+         "event": "changeSocketStatus",
+         "url": "http://api.smartpowersocket.xyz/changeSocketStatus",
+         "requestType": "POST",
+         "headers": {
+             "Content-Type": "application/json"
+         },
+         "json": {
+             "socketNum": "{{socketNum}}",
+             "apiKey": "{{apiKey}}"
+         },
+         "mydevices": true
+     }
 */
 /*  WEBHOOK SETUP - END */
 

//############################

/* CALLBACKS FOR BOTH PHOTON REQUESTS (SEND DATA, GET DATA)  - START  */
void photonRequestReturn(const char *event, const char *data) { }

void serverRequestReturn(const char *event, const char *data)
{

    if (data) {

    Serial.begin(9600);

    // Subscribe to the webhook response event
    Particle.subscribe("hook-response/sendSocketInformation", sendSocketInformationReturn , MY_DEVICES);
    Particle.subscribe("hook-response/getServerInformation", getServerInformationReturn , MY_DEVICES);
    Particle.subscribe("hook-response/changeSocketStatus", changeSocketStatusReturn , MY_DEVICES);

    /* VOLTAGE SENSOR PIN */
    pinMode(voltage_pin, INPUT);     // Input Pin for the voltage sensor
