Udp socket sample program. This program will send back the received packet.
Dependencies: NyFileSystems libMiMic mbed-rtos mbed
Revision 21:7dbe2100b419, committed 2013-08-09
- Comitter:
- nyatla
- Date:
- Fri Aug 09 14:23:08 2013 +0000
- Parent:
- 20:4b0b449ddb12
- Child:
- 22:6326ecf3f540
- Commit message:
- add issue comment
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);