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: ESP8266Interface NSAPITests NetworkSocketAPI mbed
Fork of ESP8266InterfaceTests by
Revision 1:be56c18eabec, committed 2016-03-09
- Comitter:
- sam_grove
- Date:
- Wed Mar 09 07:06:20 2016 +0000
- Parent:
- 0:99f47847188c
- Child:
- 2:2eb8bee96112
- Commit message:
- update dependencies
Changed in this revision
--- a/ESP8266Interface.lib Thu Mar 03 21:10:26 2016 +0000 +++ b/ESP8266Interface.lib Wed Mar 09 07:06:20 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#42441dd2093e +https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#8ded612adb96
--- a/NetworkSocketAPI.lib Thu Mar 03 21:10:26 2016 +0000 +++ b/NetworkSocketAPI.lib Wed Mar 09 07:06:20 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#543799d6472e +https://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#c3dfac768d9d
--- a/main.cpp Thu Mar 03 21:10:26 2016 +0000
+++ b/main.cpp Wed Mar 09 07:06:20 2016 +0000
@@ -17,19 +17,18 @@
#include "mbed.h"
#include "ESP8266Interface.h"
#include "NSAPITests.h"
-
+
ESP8266Interface iface(D1, D0);
-
+
int main()
{
int32_t result = iface.connect("ssid", "password");
-
+
if (result) {
- printf("Interface failed to connect with code %d\r\n", result);
+ printf("Interface failed to connect with code %d\r\n", result);
} else {
nsapi_tests("ESP8266Interface Tests", &iface, "0.0.0.0", 4000);
iface.disconnect();
}
- while(1) {
- }
+ while(1);
}
