         }
     }
 }
+
+void changeSocketStatusReturn(const char *event, const char *data)
+{
+    if (data) {
+        if (strstr(data, "Socket1") != NULL) {
+            if (strstr(data, "Active") != NULL) {
+                statuses[0] = String("Active");
+            } else if (strstr(data, "Inactive") != NULL) {
+                statuses[0] = String("Inactive");
+            }
+        } else if (strstr(data, "Socket2") != NULL) {
+            if (strstr(data, "Active") != NULL) {
+                statuses[1] = String("Active");
+            } else if (strstr(data, "Inactive") != NULL) {
+                statuses[1] = String("Inactive");
+            }
+        }
+    }
+}
 /* CALLBACKS FOR BOTH PHOTON REQUESTS (SEND DATA, GET DATA)  - END  */
 
 

    /* Function to toggle_relay2 when the interruption from the falling edge signal from pushbutton2 happens */
    if(digitalRead(pushbutton2) == LOW && digitalRead(pushbutton1) == HIGH){
        state_relay2 = !state_relay2;
        digitalWrite(relay2, state_relay2);       //Writes the state_relay2 to relay 2
    }
}


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

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

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

    if (data) {
