Updated for the latest version of httpd-simple in rpl-border-router
This commit is contained in:
parent
c1b88afe48
commit
c46acc0a77
5 changed files with 65 additions and 8 deletions
|
@ -41,7 +41,6 @@
|
|||
#include "dev/button-sensor.h"
|
||||
#include "dev/leds.h"
|
||||
#include "wget.h"
|
||||
#include "webserver-nogui.h"
|
||||
#include "httpd-simple.h"
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -59,8 +58,21 @@
|
|||
#define SET_LEDS_OFF "/0"
|
||||
|
||||
PROCESS(websense_remote_process, "Websense Remote");
|
||||
PROCESS(webserver_nogui_process, "Web server");
|
||||
PROCESS_THREAD(webserver_nogui_process, ev, data)
|
||||
{
|
||||
PROCESS_BEGIN();
|
||||
|
||||
AUTOSTART_PROCESSES(&websense_remote_process);
|
||||
httpd_init();
|
||||
|
||||
while(1) {
|
||||
PROCESS_WAIT_EVENT_UNTIL(ev == tcpip_event);
|
||||
httpd_appcall(data);
|
||||
}
|
||||
|
||||
PROCESS_END();
|
||||
}
|
||||
AUTOSTART_PROCESSES(&websense_remote_process,&webserver_nogui_process);
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static const char *TOP = "<html><head><title>Contiki Websense Remote</title></head><body>\n";
|
||||
|
@ -141,7 +153,6 @@ PROCESS_THREAD(websense_remote_process, ev, data)
|
|||
|
||||
mode = 0;
|
||||
wget_init();
|
||||
process_start(&webserver_nogui_process, NULL);
|
||||
|
||||
SENSORS_ACTIVATE(button_sensor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue