Note: "[app.wfi] WARN: WS_RUN W.rdy=1 IP=0 " is from the app. It indicates that WiFi.ready() is returning true but the device IP is 0.0.0.0.
Problem is that WiFi disconnects and we cannot connect again until the device is reset.
Q1. Am wondering if this was a side effect of the Particle cloud issue “Integrations not triggering - 2 October 2020”? (As discussed here: Webhook requests gone)
Q2. Any thoughts on how to remedy (I suppose upon detecting the condition: WiFi.ready() == true but the device IP is 0.0.0.0).
This is an error you’d see when establishing TCP connection to Device Service (so, only on Photon and P1) succeeds, but we fail to receive an initial nonce packet.
The underlying problem most likely comes from the fact mentioned in the thread: WiFi.ready() being true, but there is no IP address. The cause is not 100% certain, ideally we’d want to see a log of what happened before to trigger this. Making a TCP connection without IP address should not work
Just reporting for whomever is interested, have been able to produce “Event loop error 24” at will by running a DeviceOS 2.0.0-rc.1 test application (that just runs the WiFi state machine code)(noting that it is not the app that had the original issue) by simply turning off the access point:
Good news is that performing the said test I have not been able to reproduce the issue of this post: “WiFi disconnects and we cannot connect again until the device is reset”.
Have also tested allocating memory to take up the heap. If I allocate too much (in my case 38,750), I cannot connect to the Access Point at all, below this, can do so with no issue (eg power cycling the access point multiple times).
Am closing this post as solved considering we now know how to reproduce the message and what it means.