Example program for the BSDInterface
Dependencies: BSDInterface NetworkSocketAPI
Fork of HelloLWIPInterface by
Revision 26:4242277cf9c7, committed 2016-02-02
- Comitter:
- geky
- Date:
- Tue Feb 02 22:22:15 2016 +0000
- Parent:
- 25:eef7d93d9f5b
- Child:
- 27:ccedb4ad0033
- Commit message:
- Reverted "Updated AT firmware version"
Changed in this revision
ESP8266Interface.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ESP8266Interface.lib Mon Feb 01 22:22:36 2016 +0000 +++ b/ESP8266Interface.lib Tue Feb 02 22:22:15 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#e587ee768fb5 +https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#c98b8086ef34
--- a/main.cpp Mon Feb 01 22:22:36 2016 +0000 +++ b/main.cpp Tue Feb 02 22:22:15 2016 +0000 @@ -29,7 +29,7 @@ printf("NetworkSocketAPI Example\r\n"); wifi.init(); - wifi.connect("WifiDemo", ""); + wifi.connect("Lakehouse", "Sandcastle"); char* ip = wifi.getIPAddress(); printf("IP Address is: %s\n", (ip) ? ip : "No IP"); @@ -42,6 +42,7 @@ int recv_amnt = 0; //Sending and receiving from echo server + //mySocket->setAddressPort("129.6.15.28", 37); mySocket->setAddressPort(host_ip, 37); mySocket->open(); //mySocket->send("xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx", 50, 10000);