Webserver example for Nuvoton NuMaker boards and mbed OS 5.15 - HTTP 1.1 and multi-threaded.

Dependencies:   mbed-http

For Mbed OS 6, please use the NuMaker-simple-httpd example.

This application demonstrates how to run an HTTP server on an mbed OS 5 device. It is derived from http-webserver-example Request parsing is done through nodejs/http-parser.

Fixed for Mbed OS 5.15 or later

Tested on

NuMaker IoT-M487 with Ethernet NuMaker PFM-M487 with Ethernet

Committer:
Jan Jongboom
Date:
Mon Jul 31 17:12:21 2017 +0200
Revision:
1:fe3df398bdf5
Parent:
0:41f820ea137a
Child:
2:ff1a293c4df3
Compatibility with LwIP. Fix memory leaks.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jan Jongboom 0:41f820ea137a 1 {
Jan Jongboom 0:41f820ea137a 2 "config": {
Jan Jongboom 0:41f820ea137a 3 "network-interface": {
Jan Jongboom 0:41f820ea137a 4 "help": "options are ETHERNET, WIFI_ESP8266, WIFI_ODIN, WIFI_RTW, MESH_LOWPAN_ND, MESH_THREAD",
Jan Jongboom 1:fe3df398bdf5 5 "value": "ETHERNET"
Jan Jongboom 0:41f820ea137a 6 },
Jan Jongboom 0:41f820ea137a 7 "mesh_radio_type": {
Jan Jongboom 0:41f820ea137a 8 "help": "options are ATMEL, MCR20, SPIRIT1, EFR32",
Jan Jongboom 0:41f820ea137a 9 "value": "ATMEL"
Jan Jongboom 0:41f820ea137a 10 },
Jan Jongboom 0:41f820ea137a 11 "esp8266-tx": {
Jan Jongboom 0:41f820ea137a 12 "help": "Pin used as TX (connects to ESP8266 RX)",
Jan Jongboom 0:41f820ea137a 13 "value": "D1"
Jan Jongboom 0:41f820ea137a 14 },
Jan Jongboom 0:41f820ea137a 15 "esp8266-rx": {
Jan Jongboom 0:41f820ea137a 16 "help": "Pin used as RX (connects to ESP8266 TX)",
Jan Jongboom 0:41f820ea137a 17 "value": "D0"
Jan Jongboom 0:41f820ea137a 18 },
Jan Jongboom 0:41f820ea137a 19 "esp8266-debug": {
Jan Jongboom 0:41f820ea137a 20 "value": true
Jan Jongboom 0:41f820ea137a 21 },
Jan Jongboom 0:41f820ea137a 22 "wifi-ssid": {
Jan Jongboom 0:41f820ea137a 23 "value": "\"SSID\""
Jan Jongboom 0:41f820ea137a 24 },
Jan Jongboom 0:41f820ea137a 25 "wifi-password": {
Jan Jongboom 0:41f820ea137a 26 "value": "\"Password\""
Jan Jongboom 0:41f820ea137a 27 }
Jan Jongboom 0:41f820ea137a 28 },
Jan Jongboom 0:41f820ea137a 29 "target_overrides": {
Jan Jongboom 0:41f820ea137a 30 "*": {
Jan Jongboom 0:41f820ea137a 31 "target.features_add": ["NANOSTACK", "LOWPAN_ROUTER", "COMMON_PAL"],
Jan Jongboom 0:41f820ea137a 32 "mbed-mesh-api.6lowpan-nd-channel-page": 0,
Jan Jongboom 0:41f820ea137a 33 "mbed-mesh-api.6lowpan-nd-channel": 12,
Jan Jongboom 0:41f820ea137a 34 "mbed-trace.enable": 0,
Jan Jongboom 0:41f820ea137a 35 "mbed-http.http-buffer-size": 2048
Jan Jongboom 0:41f820ea137a 36 },
Jan Jongboom 0:41f820ea137a 37 "HEXIWEAR": {
Jan Jongboom 0:41f820ea137a 38 "esp8266-tx": "PTD3",
Jan Jongboom 0:41f820ea137a 39 "esp8266-rx": "PTD2"
Jan Jongboom 0:41f820ea137a 40 },
Jan Jongboom 0:41f820ea137a 41 "NUCLEO_F401RE": {
Jan Jongboom 0:41f820ea137a 42 "esp8266-tx": "D8",
Jan Jongboom 0:41f820ea137a 43 "esp8266-rx": "D2"
Jan Jongboom 0:41f820ea137a 44 },
Jan Jongboom 0:41f820ea137a 45 "NUCLEO_F411RE": {
Jan Jongboom 0:41f820ea137a 46 "esp8266-tx": "D8",
Jan Jongboom 0:41f820ea137a 47 "esp8266-rx": "D2"
Jan Jongboom 0:41f820ea137a 48 }
Jan Jongboom 0:41f820ea137a 49 }
Jan Jongboom 0:41f820ea137a 50 }