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: C12832 EthernetInterface mbed-rtos mbed ConfigFile
Diff: main.cpp
- Revision:
- 8:845dfadaa70d
- Parent:
- 7:23c8d34000eb
- Child:
- 9:60ce5e733ea6
--- a/main.cpp Sun Jun 14 10:45:10 2015 +0000
+++ b/main.cpp Mon Jun 15 12:07:05 2015 +0000
@@ -37,7 +37,7 @@
Log::v("Bringing ethernet interface online\r\n");
-// int success = eth.init(); //Use DHCP
+ //int success = eth.init(); //Use DHCP
int success = eth.init(IP_ADDRESS, NETMASK, GATEWAY);
if (success < 0 || eth.connect() < 0) { // Default timeout of 15 seconds
@@ -50,8 +50,8 @@
setLcdServerInfo(eth.getIPAddress());
// Start the daemon
-// PlcStatusIndicator status_indicator(p21);
- PlcStatusIndicator status_indicator(LED4);
+ PlcStatusIndicator status_indicator(p21);
+ //PlcStatusIndicator status_indicator(LED4);
TcpDaemon daemon(TCP_SERVER_PORT, LED2, LED3, &status_indicator);
Log::v("TCP daemon listening @ TCP_SERVER_PORT = %d\r\n", TCP_SERVER_PORT);
daemon.startListening();