Sailing_Nut wrote:Now for the interesting thing.....
No difference in the two programs other than the comment lines and the definitions for SSID and AP_SECURITY in wifi.h. However I had the program working with the changes in wifi.h before!
Now time to strip out the comments for grins!
Strange issue with the mbed compiler, removing the commented lines gets the program to work again!
OK, the following kills the program!
(I included some of the original code for context on where I'm putting the change in main.cpp)
- Code: Select all
#ifndef CC3000_UNENCRYPTED_SMART_CONFIG
const uint8_t smartconfigkey[] = {0x73,0x6d,0x61,0x72,0x74,0x63,0x6f,0x6e,0x66,0x69,0x67,0x41,0x45,0x53,0x31,0x36};
#else
const uint8_t smartconfigkey = 0;
#endif
//const uint8_t devUUID1[] = {'7', '9', '6', 'c', '2', '7', 'c', '0'};
//const uint8_t devUUID2[] = {'8', '2', '0', '7'};
//const uint8_t devUUID3[] = {'1', '1', 'e', '3'};
//const uint8_t devUUID4[] = {'b', 'a', 'a', '7'};
//const uint8_t devUUID5[] = {'0', '8', '0', '0', '2', '8', '5', '7', '3', '8', '5', '3'};
const int ECHO_SERVER_PORT_UDP = 81;
uint8_t *HostToPing = (uint8_t *)"google.com";
tNetappIpconfigRetArgs ipinfo;
extern char tmpBuffer[512];