Flashing firmware makes spark unresponsive, but with breathin cyan [SOLVED]]

And I cant reflash it with Web IDE. It is annoying. I’m doing

 if(client.connect(server, 9606)) {
        client.println("GET /v.php?START HTTP/1.0");
        client.println("Connection: close");

During setup()
That is only notable difference to previous version that did not cause the problem

Answer: For TCPClient to work nicely it is absolutelly required to wait for server to start responding before client.flush/client.stop operations
Sample solution: https://community.spark.io/t/tcpclient-as-simple-logger/3014/22?u=ryotsuke

1 Like