in an application for the p1 i am using WiFi.listen() if there are no wifi credentials. it runs with SYSTEM_MODE(SEMI_AUTOMATIC) before and after the WiFi.listen() i use Log (and SerialLogHandler logHandler(LOG_LEVEL_ALL))
when the device is blinking blue (and unclaimed) and i use the particle app to “add” it works fine but i am missing some of the logging after the Wifi.listen()
although annoying, this is not the problem but might be a clue:
when i add code using the SPI interface (and A2 as select) i can no longer configure the device with the particle app: i get a “X” before “Configuring Wi-Fi credentials” followed by “Error! Setup process couldn’t configure the Wi-Fi credentials …” (and the blue led keeps blinking)
in case the P1 is already setup the code runs fine. anyone any idea?
thanks so much!
browsing through the device-os code on github: why do i not see the log messages? like LOG(INFO, “Entering listening mode”);
how do i enable those? (i was hoping “LOG_LEVEL_ALL” whould do that)