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: mbed-src WizFi310Interface_Legacynew DHT MQTT
Revision 18:1abf52cbd2de, committed 2018-12-12
- Comitter:
- irayya
- Date:
- Wed Dec 12 09:56:12 2018 +0000
- Parent:
- 17:778cf2eacb1e
- Commit message:
- nc
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jan 09 04:09:48 2018 +0000
+++ b/main.cpp Wed Dec 12 09:56:12 2018 +0000
@@ -6,8 +6,8 @@
#include "MQTTSocket.h"
#define SECURE WizFi310::SEC_WPA2_MIXED
-#define SSID "CDI"
-#define PASS "Cdi*1717"
+#define AP_SSID "CDI_STAFF"// Input SSID
+#define AP_PASSWORD "mzhZFQpv" // Input PW
/*
SET DHCP
*/
@@ -49,7 +49,7 @@
printf("After Initialisation. \r\n");
printf("After Set Address. \r\n");
- if ( wizfi310.connect(SECURE, SSID, PASS, WizFi310::WM_STATION)) return -1;
+ if ( wifi.connect(SECURE,AP_SSID, AP_PASSWORD,WizFi310::WM_STATION)) return -1;
printf("After Connect. \r\n");
printf("IP Address is %s\r\n", wizfi310.getIPAddress());