+ ParseArguments(argc, argv);
+
+ // start sensor threads
+ for (int i = 0; i < NUMSENSORS; ++i)
+ {
+ Sensor_Init(g_sensors+i, i);
+ pthread_create(&(g_sensors[i].thread), NULL, Sensor_Main, (void*)(g_sensors+i));
+ }
+
+ // run request thread in the main thread
+ Query_Request(NULL); //TODO: Replace with FastCGI code