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

mbed_app.json

Committer:
morgandu
Date:
2020-06-29
Revision:
2:ff1a293c4df3
Parent:
1:fe3df398bdf5

File content as of revision 2:ff1a293c4df3:

{
    "target_overrides": {
        "*": {
            "platform.default-serial-baud-rate"     : 115200,
            "platform.stdio-baud-rate"              : 115200,
            "platform.stdio-convert-newlines"       : true,
            "platform.stdio-buffered-serial"        : false,
            "platform.heap-stats-enabled"           : 1,
            "nsapi.default-wifi-security"           : "WPA_WPA2",
            "nsapi.default-wifi-ssid"               : "\"SSID\"",
            "nsapi.default-wifi-password"           : "\"PASSWORD\"",
            "mbed-trace.enable": 0,
            "mbed-http.http-buffer-size": 2048
        },
        "NUMAKER_IOT_M487": {
            "target.network-default-interface-type" : "ETHERNET",
            "esp8266.tx"                            : "PH_8",
            "esp8266.rx"                            : "PH_9",
            "esp8266.rts"                           : "A2",
            "esp8266.cts"                           : "A3",
            "esp8266.rst"                           : "PH_3",
            "esp8266.provide-default"               : true
        }
    }
}