Created Fri, 25 Mar 2016 07:40:41 +0000 by DavidMc
Fri, 25 Mar 2016 07:40:41 +0000
Hi,
I will apreciate if you can helpme to fix the Error present when I tried to use the "USE_WEP104", an error is present just like the library has errors. I´m ussing the MPIDE 0150, the Wifire Rev C board and the least DEIPcK library. I hope you can help me.
The error is the following.
WiFiTCPEchoClientdmc.cpp:135:5: error: 'WEP104KEY' in class 'DEWFcK' does not name a type WiFiTCPEchoClientdmc.cpp: In function 'void loop()': WiFiTCPEchoClientdmc.cpp:237:16: error: 'keySet' was not declared in this scope
// select 1 for the security you want, or none for no security
//#define USE_WPA2_PASSPHRASE
//#define USE_WPA2_KEY
//#define USE_WEP40
#define USE_WEP104
//#define USE_WF_CONFIG_H
// modify the security key to what you have.
#if defined(USE_WPA2_PASSPHRASE)
const char * szPassPhrase = "37EA819DA9";
//const char * szPassPhrase = "Digilent";
#define WiFiConnectMacro() deIPcK.wfConnect(szSsid, szPassPhrase, &status)
#elif defined(USE_WPA2_KEY)
DEWFcK::WPA2KEY key = { 0x27, 0x2C, 0x89, 0xCC, 0xE9, 0x56, 0x31, 0x1E,
0x3B, 0xAD, 0x79, 0xF7, 0x1D, 0xC4, 0xB9, 0x05,
0x7A, 0x34, 0x4C, 0x3E, 0xB5, 0xFA, 0x38, 0xC2,
0x0F, 0x0A, 0xB0, 0x90, 0xDC, 0x62, 0xAD, 0x58 };
#define WiFiConnectMacro() deIPcK.wfConnect(szSsid, key, &status)
#elif defined(USE_WEP40)
const int iWEPKey = 0;
DEWFcK::WEP40KEY keySet = { 0xBE, 0xC9, 0x58, 0x06, 0x97, // Key 0
0x00, 0x00, 0x00, 0x00, 0x00, // Key 1
0x00, 0x00, 0x00, 0x00, 0x00, // Key 2
0x00, 0x00, 0x00, 0x00, 0x00 }; // Key 3
#define WiFiConnectMacro() deIPcK.wfConnect(szSsid, keySet, iWEPKey, &status)
#elif defined(USE_WEP104)
//0x3E, 0xCD, 0x30, 0xB2, 0x55, 0x2D, 0x3C, 0x50, 0x52, 0x71, 0xE8, 0x83, 0x91,
const int iWEPKey = 0;
DEWFcK::WEP104KEY keySet = { 0x33, 0x37, 0x45, 0x41, 0x38, 0x31, 0x39, 0x44, 0x41, 0x39, 0x00, 0x00, 0x00, // Key 0
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 1
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 2
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Key 3
#define WiFiConnectMacro() deIPcK.wfConnect(szSsid, keySet, iWEPKey, &status)
Fri, 25 Mar 2016 10:41:47 +0000
Support for MPIDE has pretty much been dropped. However the latest version should contain the networking libraries - there is no need to install them separately. The version included with MPIDE should work perfectly fine. I suggest you delete your downloaded networking libraries and try with the IDE included ones.
If that fails then I suggest you try either using the Arduino IDE with chipKIT-core (http://chipkit.net/wiki/index.php?title=ChipKIT_core) or UECIDE (http://uecide.org) - both of which again have the networking libraries included.
I have just tested the WEP104 in UECIDE and it compiled perfectly first time for the WF32.