Webserver example for Nuvoton NuMaker boards and mbed OS 5.15 - HTTP 1.1 and multi-threaded.
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@2:ff1a293c4df3, 2020-06-29 (annotated)
- Committer:
- morgandu
- Date:
- Mon Jun 29 08:17:16 2020 +0000
- Revision:
- 2:ff1a293c4df3
- Parent:
- 1:fe3df398bdf5
Webserver example for mbed OS 5 - HTTP 1.1 and multi-threaded; Fix for mbed OS 5.15 and clean unnecessary libraries; Add fixed IP address option; Test on Nuvoton NuMaker boards.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jan Jongboom |
0:41f820ea137a | 1 | { |
Jan Jongboom |
0:41f820ea137a | 2 | "target_overrides": { |
Jan Jongboom |
0:41f820ea137a | 3 | "*": { |
morgandu | 2:ff1a293c4df3 | 4 | "platform.default-serial-baud-rate" : 115200, |
morgandu | 2:ff1a293c4df3 | 5 | "platform.stdio-baud-rate" : 115200, |
morgandu | 2:ff1a293c4df3 | 6 | "platform.stdio-convert-newlines" : true, |
morgandu | 2:ff1a293c4df3 | 7 | "platform.stdio-buffered-serial" : false, |
morgandu | 2:ff1a293c4df3 | 8 | "platform.heap-stats-enabled" : 1, |
morgandu | 2:ff1a293c4df3 | 9 | "nsapi.default-wifi-security" : "WPA_WPA2", |
morgandu | 2:ff1a293c4df3 | 10 | "nsapi.default-wifi-ssid" : "\"SSID\"", |
morgandu | 2:ff1a293c4df3 | 11 | "nsapi.default-wifi-password" : "\"PASSWORD\"", |
Jan Jongboom |
0:41f820ea137a | 12 | "mbed-trace.enable": 0, |
Jan Jongboom |
0:41f820ea137a | 13 | "mbed-http.http-buffer-size": 2048 |
Jan Jongboom |
0:41f820ea137a | 14 | }, |
morgandu | 2:ff1a293c4df3 | 15 | "NUMAKER_IOT_M487": { |
morgandu | 2:ff1a293c4df3 | 16 | "target.network-default-interface-type" : "ETHERNET", |
morgandu | 2:ff1a293c4df3 | 17 | "esp8266.tx" : "PH_8", |
morgandu | 2:ff1a293c4df3 | 18 | "esp8266.rx" : "PH_9", |
morgandu | 2:ff1a293c4df3 | 19 | "esp8266.rts" : "A2", |
morgandu | 2:ff1a293c4df3 | 20 | "esp8266.cts" : "A3", |
morgandu | 2:ff1a293c4df3 | 21 | "esp8266.rst" : "PH_3", |
morgandu | 2:ff1a293c4df3 | 22 | "esp8266.provide-default" : true |
Jan Jongboom |
0:41f820ea137a | 23 | } |
Jan Jongboom |
0:41f820ea137a | 24 | } |
Jan Jongboom |
0:41f820ea137a | 25 | } |