     aJson.addItemToObject(apoPin[i],"connections", aJson.createIntArray(iaPinConnects,0) );
     sprintf(caPinNumBuffer,"%d",i);
     aJson.addItemToObject(poPins,caPinNumBuffer,apoPin[i]);
-  }
-
-
-//  poItem = aJson.createItem("Value13");
-//  aJson.addItemToObject(poPins,"13",poItem);
-
-
-// poPins =   aJson.createItem("20"); // THIS WORKS
+    */
+  }
+
+/*
+typedef struct Pin {
+  char label[PIN_LABEL_SIZE];
+  boolean is_analog;
+  boolean is_input;
+  float value;
+  boolean connections[TOTAL_NUM_OF_PINS];
+} Pin;
+
+Pin g_aPins[TOTAL_NUM_OF_PINS];
+*/
+
 
   // Create CONNECTIONS
   int iaConnections[10];

  poStatus = aJson.createItem("OK");
 
  // Create PINS
  //aJson.addItemToObject(poItem, "analog", poPin13);
  //aJson.addItemToObject(poPins,"13",poPins);

  int iaPinConnects[10];

  
  char caPinNumBuffer[10];
  for(int i=0; i<TOTAL_NUM_OF_PINS ;i++)
  {
    aJson.addItemToObject(apoPin[i],"label", aJson.createItem("None") );
    aJson.addItemToObject(apoPin[i],"is_analog", aJson.createFalse() );
    aJson.addItemToObject(apoPin[i],"is_input", aJson.createFalse() );

  system("/home/root/startAP");

  // Init Galileo HW
  
  // Enable all digital pins as outputs
  for(int i=0; i<14; i++)
  {
