   aJson.print(msg, &stringStream);
   String sTempString((char *)buf);
   
+  // Write the state
+  Serial.print("Board State:");  
+  Serial.println(sTempString);
+
   if( msg )
   {
     // Open the system file

        aJson.addItemToObject(poConnObject,"source",aJson.createItem(caPinNumBuffer));
        sprintf(caPinNumBuffer,"%d",i);        
        aJson.addItemToObject(poConnObject,"target",aJson.createItem(caPinNumBuffer));
        aJson.addItemToArray(paConnections,poConnObject);
      }
    }

    updateBoardState();
  
// TESTING
  getSerialCommand(); 
  
  if (millis() - last_print > 5000)
  {
