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.
Diff: main.cpp
- Revision:
- 12:138b2b3d041a
- Parent:
- 11:101be77aa5db
- Child:
- 13:f56c6e844cc3
diff -r 101be77aa5db -r 138b2b3d041a main.cpp
--- a/main.cpp Tue Oct 27 16:39:39 2020 +0000
+++ b/main.cpp Tue Oct 27 16:43:25 2020 +0000
@@ -264,12 +264,12 @@
/* Listen for clients */
server.listen();
- //listening for http GET request
+ printf("=========================================\r\n");
+ printf("Ready to serve clients.\r\n");
+ net->get_ip_address(&addr);
+ printf("Usage: Type http:\/\/%s\/%s\/ into your web browser and hit ENTER\r\n", addr.get_ip_address(), PASSWORD);
while (true) {
- printf("=========================================\r\n");
- printf("Ready to serve clients.\r\n");
- net->get_ip_address(&addr);
- printf("Usage: Type http:\/\/%s\/%s\/ into your web browser and hit ENTER\r\n", addr.get_ip_address(), PASSWORD);
+ //listening for http GET request
client = server.accept();
if (client) {
client->getpeername(&addr);