 //-----------------------------------------------------------
 // Process recieved message from the webpage here.... 
 //------------------------------------------------------------
-void processTouch(char* in) {
-
+void procWebMsg(char* _in, size_t _len) {
+
+  /*
+  g_abD[i] = false;      digitalWrite(i, LOW);    
+  g_aiP[i] = 0;        analogWrite(i, LOW);    
+  */
+  
   Serial.print("input: "); 
-  Serial.println(in);
-  if(String(in) == "trigger"){
+  Serial.println(String(_in));
+    Serial.print("_len: "); 
+  Serial.println(String(_len));
+  if(String(_in) == "trigger"){
     Serial.println("Trigger found");
     if(currentLED){
       digitalWrite(led, LOW);

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

  // Init Galileo HW
  pinMode(led, OUTPUT);
  digitalWrite(led, LOW);

  // Init pin state variables
  int i=0;

  for(i=0; i<TOTAL_NUM_Px; i++)
    g_aiP[i] = 0;   

  _udpIn.begin(3333);
  _udpIn.listen();

  Serial.println("Starting WebSocket");
  initWebsocket();  

}

