According to http://docs.spark.io/firmware/
Allows the user to set credentials for the Wi-Fi network from within the code. These credentials will be added to the CC3000’s memory, and the Core will automatically attempt to connect to this network in the future.
// Connects to an unsecured network.
// Connects to a network secured with WPA2 credentials.
// Connects to a network with a specified authentication procedure.
// Options are WPA2, WPA, or WEP.
WiFi.setCredentials(SSID, PASSWORD, AUTH);
WiFi.setCredentials(“My_Router”, “wepistheworst”, WEP);
I have the core connected already but i want it to connect to a house on the first visit without connect the core to usb by using the setCredentials.