File Config for Ethernet connection
Revision 1:379ead29a2ba, committed 2016-04-04
- Comitter:
- 13075593
- Date:
- Mon Apr 04 22:03:43 2016 +0000
- Parent:
- 0:0463a140d716
- Commit message:
- v1
Changed in this revision
ConfigEthernet.cpp | Show annotated file Show diff for this revision Revisions of this file |
ConfigEthernet.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ConfigEthernet.cpp Sun Apr 03 15:43:27 2016 +0000 +++ b/ConfigEthernet.cpp Mon Apr 04 22:03:43 2016 +0000 @@ -1,10 +1,7 @@ #include "ConfigEthernet.h" ConfigEthernet::ConfigEthernet(string _ip, string _mask, string _gateway) -{ - PC_Comm _pc; - pc = _pc.pc; - +{ ip = _ip.c_str(); mask = _mask.c_str(); gateway = _gateway.c_str(); @@ -14,12 +11,12 @@ { eth.init(ip, mask, gateway); eth.connect(); - pc->printf("Ethernet Connected \n"); + printf("Ethernet Connected \n"); wait(2); } void ConfigEthernet::disconnect() { eth.disconnect(); - pc->printf("Connected \n"); + printf("Connected \n"); } \ No newline at end of file
--- a/ConfigEthernet.h Sun Apr 03 15:43:27 2016 +0000 +++ b/ConfigEthernet.h Mon Apr 04 22:03:43 2016 +0000 @@ -2,7 +2,6 @@ #define CONFIG_ETHERNET_H #include "mbed.h" -#include "PC_Comm.h" #include "rtos.h" #include "EthernetInterface.h" #include <string>