   ,
 
   { 
-    NULL, NULL, 0, 0   } /* terminator */
+    NULL, NULL, 0, 0       } /* terminator */
 };
 
 void sighandler(int sig)

/* lyt_protocol*/
static int
callback_lyt_protocol(struct libwebsocket_context *context,
struct libwebsocket *wsi,
enum libwebsocket_callback_reasons reason,
void *user, void *in, size_t len)
{

  //Serial.println("callback_lyt_protocol()");
  // WE ARE ALWAYS HITTING THIS POINT

  int n;
  unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 512 + LWS_SEND_BUFFER_POST_PADDING];
  unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];

  switch (reason) {


  case LWS_CALLBACK_SERVER_WRITEABLE:
    sensor1 = analogRead(sensor1Pin);
    n = sprintf((char *)p, "%d,%d", currentLED, sensor1);//colors);
    Serial.print("Output Message:");
    Serial.println(n);
    n = libwebsocket_write(wsi, p, n, LWS_WRITE_TEXT);
    if (n < 0) {
      lwsl_err("ERROR %d writing to socket\n", n);
      return 1;
    }

    break;

  case LWS_CALLBACK_RECEIVE:

    processTouch((char*) in); 		


    break;


  default:
    break;
  }

  return 0;
}



/* list of supported protocols and callbacks */


}

void loop()
{


}




