ESP8266 part of the f105-motor-demo project (see f105-motor-demo_stm32)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
f105-motor-demo_esp/user/page_monitoring.c

39 lines
1023 B

#include <esp8266.h>
#include <httpd.h>
#include "page_monitoring.h"
/** "Monitoring" page - fill form fields */
int FLASH_FN tplMonitoring(HttpdConnData *connData, char *token, void **arg)
{
// arg is unused
(void)arg;
char buf[20];
if (token == NULL) return HTTPD_CGI_DONE;
if (streq(token, "refStored")) {
httpdSend(connData, true ? "OK" : "Not set!", -1); // fixme
} else if (streq(token, "repEnableCheck")) {
if (true) httpdSend(connData, "checked", -1); // fixme
} else if (streq(token, "repInterval")) {
sprintf(buf, "%d", 123); // fixme
httpdSend(connData, buf, -1);
} else if (streq(token, "repSvcCheckXv")) { // Xively
if (true) httpdSend(connData, "checked", -1); // fixme
} else if (streq(token, "repSvcCheckTs")) { // ThingSpeak
if (true) httpdSend(connData, "checked", -1); // fixme
} else if (streq(token, "repFeed")) {
httpdSend(connData, "null", -1); // fixme
} else if (streq(token, "repKey")) {
httpdSend(connData, "null", -1); // fixme
}
return HTTPD_CGI_DONE;
}