Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed
Fork of F103-Serial-to-Ethernet by
Revision 47:d92d2c5b8073, committed 2016-08-19
- Comitter:
- olympux
- Date:
- Fri Aug 19 20:17:00 2016 +0000
- Parent:
- 46:971bdaa3507c
- Commit message:
- forked to create a new repo for webserver on F103+W5500. No other functions
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Aug 14 11:06:53 2016 +0000
+++ b/main.cpp Fri Aug 19 20:17:00 2016 +0000
@@ -110,6 +110,9 @@
wdt.Service();
}
+/*
+ * HTTP server
+ */
HTTPServer create_simple_server()
{
HTTPServer srv;
@@ -135,7 +138,7 @@
Thread::wait(500); // turn on delay
/*
- * Configure
+ * Configure hardware
*/
pc.baud(115200);
DBG("Starting...");
@@ -169,7 +172,7 @@
/*
- * UI threads
+ * Threads
*/
Thread t0(wdt_reset_thread);
@@ -177,8 +180,8 @@
RPCType::instance().register_types();
/*
- * Ethernet
- */
+ * Ethernet
+ */
ret = ethernet_init();
if (ret) {
ERR("Ethernet initialisation failed. App halted.");
@@ -187,6 +190,9 @@
Thread::wait(2000); // TCP/UDP stack delay
+ /*
+ * HTTP server
+ */
// create rpc http server
HTTPServer srv = create_interactive_server();
