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 0:99f47847188c, committed 2016-03-03
- Comitter:
- bridadan
- Date:
- Thu Mar 03 21:10:26 2016 +0000
- Child:
- 1:be56c18eabec
- Commit message:
- Initial commit
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ESP8266Interface.lib Thu Mar 03 21:10:26 2016 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/NetworkSocketAPI/code/ESP8266Interface/#42441dd2093e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NSAPITests.lib Thu Mar 03 21:10:26 2016 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/NetworkSocketAPI/code/NSAPITests/#07b22947be75
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NetworkSocketAPI.lib Thu Mar 03 21:10:26 2016 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/#543799d6472e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Mar 03 21:10:26 2016 +0000
@@ -0,0 +1,35 @@
+/* NetworkSocketAPI Example Program
+ * Copyright (c) 2015 ARM Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#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);
+ } else {
+ nsapi_tests("ESP8266Interface Tests", &iface, "0.0.0.0", 4000);
+ iface.disconnect();
+ }
+ while(1) {
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 03 21:10:26 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb \ No newline at end of file
