ThingPlug Test
Dependents: WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P
Fork of WizFi310Interface by
Diff: WizFi310/WizFi310.cpp
- Revision:
- 1:16e57103a7dd
- Parent:
- 0:df571f8f8c03
- Child:
- 5:72212beb817c
- Child:
- 7:b7019399eb1e
--- a/WizFi310/WizFi310.cpp Wed Oct 05 09:40:30 2016 +0000 +++ b/WizFi310/WizFi310.cpp Mon Oct 10 05:12:51 2016 +0000 @@ -70,10 +70,6 @@ if ( cmdWNET(_state.dhcp) ) return -1; if ( cmdWSET(_state.wm, _state.ssid) ) return -1; - //NSAPI_SECURITY_NONE = 0, /*!< open access point */ -// NSAPI_SECURITY_WEP, /*!< phrase conforms to WEP */ -// NSAPI_SECURITY_WPA, /*!< phrase conforms to WPA */ -// NSAPI_SECURITY_WPA2, /*!< phrase conforms to WPA2 */ switch (_state.sec) { @@ -94,37 +90,6 @@ break; } - -/* daniel - switch (_state.sec) - { - case SEC_AUTO: - strcpy(sec,""); - break; - case SEC_OPEN: - strcpy(sec,"OPEN"); - break; - case SEC_WEP: - strcpy(sec,"WEP"); - break; - case SEC_WPA_TKIP: - strcpy(sec,"WPA"); - break; - case SEC_WPA_AES: - strcpy(sec,"WPAAES"); - break; - case SEC_WPA2_AES: - strcpy(sec,"WPA2AES"); - break; - case SEC_WPA2_TKIP: - strcpy(sec,"WPA2TKIP"); - break; - case SEC_WPA2_MIXED: - strcpy(sec,"WPA2"); - break; - } -*/ - if ( cmdWSEC(_state.wm, _state.pass, sec) ) return -1; if ( cmdWJOIN() ) return -1;; _state.associated = true;