 
     updateBoardState();
     aJsonObject *msg = getJsonBoardState();
+//    Serial.println("HERE0");
     //p = (char *)(aJson.print(msg));
     char * pTempPointer = aJson.print(msg);
+ //   Serial.println("HERE1");
     p = (unsigned char *)pTempPointer;
     //    Serial.println("");
-
+ //   Serial.println("HERE2");
     aJson.print(msg, &serial_stream);
-    Serial.println("");
+ //   Serial.println("HERE3");
     aJson.deleteItem(msg);
 
     /*

        g_aPins[i].value = atof(poValue->valuestring);
      }

      /* 
       //        g_aPins[i].is_analog = poLabel->valuebool;
       // g_aPins[i].label[PIN_LABEL_SIZE] = 
       
       aJsonObject *poIsAnalog = aJson.getObjectItem(poPinVals, "is_analog");
       if (poPinVals)
       g_aPins[i].is_analog = poIsAnalog->valuebool;
       */

      // g_aPins[i].is_input = 


      // g_aPins[i].value = 

      // Print pin value after assigment
      //      char sPinState[128];
      snprintf(sPinState, sizeof(sPinState), "%s,%i,%i,%f", g_aPins[i].label, g_aPins[i].is_analog, g_aPins[i].is_input, g_aPins[i].value);
      //snprintf(sPinState, sizeof(sPinState), "%s,%i,%i,%f", g_aPins[i].label, poIsAnalog->valuebool, g_aPins[i].is_input, g_aPins[i].value);
      //Serial.println("Pin Data: ");
      Serial.println(sPinState);


    }    

void processMessage(char *_acMsg)
{

//  Serial.print("Incoming message: "); // debug
//  Serial.println(_acMsg);  

  aJsonObject *poMsg = aJson.parse(_acMsg);

