That’s a nice idea! It fits in well with system events, where the application firmware can register a system event handler to be notified of system activities. https://github.com/spark/firmware/issues/279
we could have wifi_listening
event that is called during each iteration of the listening loop so application firmware can take action such as implementing a timeout, external LED control etc…
This is simple to code and document - will let you know when it’s in the develop branch.