The “cash on demand” statement was technically correct!!
Re the button handler - just test it out using the Web IDE (I find that it is the quickest way of performing little experiments like this). Let us know how it goes. Hope it works for you.
By disabling SoftAP, I mean just not including the handler in the STARTUP() macro:
STARTUP( Keyboard.begin(); // Allows the HID device attach for the first time after boot // with *both* Serial and Keyboard #ifdef SOFTAP_ENABLED // Refer https://community.particle.io/t/application-softap-http-pages-issue/22499/4 // Be sure to initialize the softAP pages in a STARTUP() macro so they // are setup *before* the device connects to the internet. // // If it is initialized in the setup() method, then SoftAP pages // won’t be available until the device has connected to the cloud. softap_set_application_page_handler(myPage, nullptr); #endif // SOFTAP_ENABLED );
I can’t tell you if performing the above saves on heap memory as I have not bothered checking.
Re the WiFi factory default, we just find it really handy for a number of reasons.