for OV5642
Dependencies: EthernetInterface FATFileSystem GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed
Revision 6:7ec90cc47dc4, committed 2015-11-02
- Comitter:
- 1050186
- Date:
- Mon Nov 02 01:11:12 2015 +0000
- Parent:
- 5:34d84609dd60
- Child:
- 7:c45ecff1b44d
- Commit message:
- The IP address is acquired from DHCP Server.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 23 11:03:49 2015 +0000 +++ b/main.cpp Mon Nov 02 01:11:12 2015 +0000 @@ -357,8 +357,8 @@ RPCFunction rpcSetI2C(SetI2CfromWeb, "SetI2CfromWeb"); printf("EthernetInterface Setting up...\r\n"); -// if (eth.init() != 0) { //for DHCP Server - if (eth.init("192.168.0.2","255.255.255.0","192.168.0.3") != 0) { //for Static IP Address (IPAddress, NetMasks, Gateway) + if (eth.init() != 0) { //for DHCP Server +// if (eth.init("192.168.0.2","255.255.255.0","192.168.0.3") != 0) { //for Static IP Address (IPAddress, NetMasks, Gateway) printf("EthernetInterface Initialize Error \r\n"); return -1; }