 void loop() {
   // Should be called for each loop.
   wsServer.listen();
-  
+
   // Do other stuff here, but don't hang or cause long delays.
   delay(100);
   //if (wsServer.isConnected()) {
-    //wsServer.send("abc123", 6);
+  //wsServer.send("abc123", 6);
   //}
-  
+
   //reset watchdog timer
   wdt_reset();
 }
+
+

    Serial.print("Off: ");
    mySwitch.switchOff(systemcode, unitcode);
  }
  
  Serial.print(systemcode);
  Serial.print(",");
  Serial.println(unitcode);
}

void switchTypeB(char* dataString)
{
  if (dataString[0] == '1')

    Serial.print("Off: ");
    mySwitch.switchOff(int(dataString[2]), int(dataString[4]));
  }

  Serial.print(dataString[2]);
  Serial.print(",");
  Serial.println(dataString[4]);
}

/*
 * Type C: Intertechno
 */
void switchTypeC(char* dataString)
{
  if (dataString[0] == '1')
  {
    Serial.print("On: ");
    mySwitch.switchOn(dataString[2], int(dataString[4]), int(dataString[6]));
  }
  else
  {
    Serial.print("Off: ");
    mySwitch.switchOn(dataString[2], int(dataString[4]), int(dataString[6]));
  }

  Serial.print(dataString[2]);
  Serial.print(",");
  Serial.println(dataString[4]);
  Serial.print(",");
  Serial.println(dataString[6]);
}

void setup() {
