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: NyFileSystems libMiMic mbed-rtos mbed
Fork of TcpSocketClientSamlpe by
Diff: main.cpp
- Revision:
- 21:7dbe2100b419
- Parent:
- 20:4b0b449ddb12
- Child:
- 23:6340bfc0bfe3
diff -r 4b0b449ddb12 -r 7dbe2100b419 main.cpp
--- a/main.cpp Fri Aug 09 10:45:36 2013 +0000
+++ b/main.cpp Fri Aug 09 14:23:08 2013 +0000
@@ -63,6 +63,15 @@
cfg.setFriendlyName("UPnPBasicDevice(LPC176x)"); //set friendly name
cfg.setUPnPPresentationURL("/rom/index.html"); //set presentationURL
cfg.setZeroconf(true);//AutoIP enable
+
+ /*
+ DHCP client has a bug which can not obtain IP address from a DHCP server.
+ In that case, please turn off setZeroconf and give an IP address manually as temporary solution.
+ cfg.setIpAddr(1,2,3,4);
+ cfg.setNetMask(1,2,3,4);
+ cfg.setGateway(1,2,3,4);
+ */
+
UPnPBasicDeviceHttpd httpd(cfg); //create a httpd instance.
net->start(cfg);
