         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
+//            Serial.println("Pin Data: ");
       //      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);
+  //    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);
+  //    Serial.println(sPinState);
 
 
     }    

       */

      char sPinState[128];
      Serial.println("Pin Data: ");
      //       aJsonObject *poPinVals = aJson.getObjectItem(_pJsonPins, pinstr);

      aJsonObject *poLabel = aJson.getObjectItem(poPinVals, "label");

    // Populate the pin's type    
    if( g_aPins[i].is_analog )
    {
      aJson.addItemToObject(apoPin[i],"is_analog", aJson.createItem("true") );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_analog", aJson.createItem("false") );
    }

    // Populate the pin's direction
    if( g_aPins[i].is_input )
    {
      aJson.addItemToObject(apoPin[i],"is_input", aJson.createItem("true") );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_input", aJson.createItem("false") );
    }

    // Populate pin's value
    char buff[20];
    snprintf(buff, sizeof(buff),"%f", g_aPins[i].value);
    aJson.addItemToObject(apoPin[i],"value", aJson.createItem( buff ) );

    // TO DO - Add pin connections array
   // aJson.addItemToObject(apoPin[i],"connections", aJson.createIntArray(iaPinConnects,0) );
    /*
     int analogValues[6];
     for (int i = 0; i < 6; i++) {
