-static void SensorsHandler(void *data, char *params)
-{
- const char *key, *value;
-
- //Begin a request only when you know the final result
- //E.g whether OK or not.
- FCGI_BeginJSON(STATUS_OK, "sensors");
- while ((params = FCGI_KeyPair(params, &key, &value))) {
- FCGI_BuildJSON(key, value);
- }
- FCGI_EndJSON();
-}
-
+/**
+ * Main FCGI request loop that receives/responds to client requests.
+ * @param data A data field to be passed to the selected module handler.
+ */