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: NetworkSocketAPI WizFi310Interface mbed
Fork of WizFi310_TCP_Echo_Server_Example by
Diff: main.cpp
- Revision:
- 4:a602935de142
- Parent:
- 3:4b4eb90875bd
- Child:
- 5:e313e52adcaf
diff -r 4b4eb90875bd -r a602935de142 main.cpp --- a/main.cpp Mon Oct 02 21:29:51 2017 +0000 +++ b/main.cpp Mon Oct 02 21:49:51 2017 +0000 @@ -29,6 +29,7 @@ #define MODE TEST_MODE WizFi310Interface wifiInterface(D1, D0, D7, D6, D8, NC, 115200); +ShiftRegisterControlClass m_register(PC_10, PC_11, PC_12); int main() { @@ -36,6 +37,9 @@ Serial pc(USBTX, USBRX); pc.baud(115200); + m_register.BlinkLed() + m_register.TurnOnLed(m_register.kPowerLedByte); + //Wifi AP Mode Start wifiInterface.connectAP(AP_SSID, AP_PASSWORD, AP_SECURITY); @@ -88,6 +92,7 @@ //Wifi Station(Client) Mode start wifiInterface.connect(buf, pwd, STA_SECURITY); + m_register.TurnOnLed(m_register.kWifiLedByte); TCPSocket *socket = new TCPSocket(&wifiInterface); #if MODE == DEMO_MODE @@ -116,4 +121,6 @@ printf("D\n"); delete socket; + + m_register.BlackOutLed(); }