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: WizFi310Interface_Legacynew mbed
Revision 1:abf832a04e02, committed 2017-09-18
- Comitter:
- ajeet3004
- Date:
- Mon Sep 18 03:44:09 2017 +0000
- Parent:
- 0:8c36d001e470
- Commit message:
- WizFi310_AP
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Sep 18 03:29:44 2017 +0000
+++ b/main.cpp Mon Sep 18 03:44:09 2017 +0000
@@ -23,10 +23,8 @@
#define SECURE WizFi310::SEC_WPA2_MIXED
-#define SSID "CDI"
-#define PASS "Cdi*1717"
-/*#define SSID "CDIWIZFI310TEST"
-#define PASS "1234567890"*/
+#define SSID "CDIWIZFI310TEST"
+#define PASS "1234567890"
#if defined(TARGET_WIZwiki_W7500)
WizFi310Interface wizfi310(D1, D0, D7, D6, D8, NC, 115200);
@@ -43,12 +41,13 @@
{
pc.baud(115200);
- printf("WizFi310 STATION. \r\n");
+ printf("WizFi310 AP. \r\n");
wizfi310.init();
printf("After Initialisation. \r\n");
printf("After Set Address. \r\n");
- if ( wizfi310.connect(SECURE, SSID, PASS, WizFi310::WM_STATION)) return -1;
+ wizfi310.setAddress("192.168.100.1","255.255.255.0","192.168.100.1");
+ if ( wizfi310.connect(SECURE, SSID, PASS, WizFi310::WM_AP)) return -1;
printf("After Connect. \r\n");
printf("IP Address is %s\r\n", wizfi310.getIPAddress());
//wizfi310.test_weathermap();