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

  
  //mySwitch.enableReceive(0);  // Receiver on inerrupt 0 => that is pin #2 (pin #3 on Arduino Leonardo)
  mySwitch.enableTransmit(8);  // Using Pin #8
}

void loop() {

  else if (frameLength == 5)
  {
    Serial.println("Type B: Two rotary/sliding switches");
    switchTypeB(dataString);
  } 
  else if (frameLength == 7)
  {
