nc
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 |
diff -r 778cf2eacb1e -r 1abf52cbd2de main.cpp --- 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());