WiFi unstable, goes dead temporarily at varying intervals

I also having strange result using the server ability. Happen if anyone have success of certain sequence.
Following the example from doc did not get me too far.
A general question, should the Server able to work together with Spark Cloud functions ??