saved a few string copies
This commit is contained in:
@@ -29,7 +29,7 @@ void wifi_associate() {
|
|||||||
WifiManager.setConfigPortalTimeout(300); // If no configuration is done in 5 mins, exit/restart quietly
|
WifiManager.setConfigPortalTimeout(300); // If no configuration is done in 5 mins, exit/restart quietly
|
||||||
if (WifiManager.autoConnect(apname)) { // @@@FIXME@@@ we should really set a PSK for the AP (but in my brief testing it crashed the ESP, so what's up with that)
|
if (WifiManager.autoConnect(apname)) { // @@@FIXME@@@ we should really set a PSK for the AP (but in my brief testing it crashed the ESP, so what's up with that)
|
||||||
settings.ip = WiFi.localIP().toString();
|
settings.ip = WiFi.localIP().toString();
|
||||||
PRINTLN_SERIAL("Wifi IP: " + settings.ip);
|
PRINTLN_SERIAL("Figured out my network \O/");
|
||||||
|
|
||||||
//wificlient.setFingerprint(WTR_SHA1);
|
//wificlient.setFingerprint(WTR_SHA1);
|
||||||
net.setInsecure(); // Do not check fingerprint
|
net.setInsecure(); // Do not check fingerprint
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ void setup() {
|
|||||||
// If we run in to trouble, this can painlessly be removed and the resulting device name will just be longer
|
// If we run in to trouble, this can painlessly be removed and the resulting device name will just be longer
|
||||||
settings.name.remove(devlen+1, 6);
|
settings.name.remove(devlen+1, 6);
|
||||||
|
|
||||||
PRINTLN_SERIAL("Device name: " + settings.name);
|
PRINTLN_SERIAL("Figured out who I am \O/");
|
||||||
|
|
||||||
wifi_setup();
|
wifi_setup();
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ void setup() {
|
|||||||
moon_setup();
|
moon_setup();
|
||||||
#endif
|
#endif
|
||||||
// Start the cooperative scheduler loops
|
// Start the cooperative scheduler loops
|
||||||
PRINTLN_SERIAL(settings.name + " done setting up, ready for main loop");
|
PRINTLN_SERIAL("Done setting up, ready for main loop \O/");
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|||||||
Reference in New Issue
Block a user