Change Cloud Dropout Tolerance

From a sketch, is there a way to adjust the tolerance for when the connection to Spark Cloud gets dropped?

I am trying to do a TcpClient.connect that happens to take more than 10 seconds. This causes the core to drop its cloud connection, so I’d like to set the tolerance higher, say 30 seconds, for this particular sketch.

There is no direct way of changing this through sketch, but you can easily change it in the firmware. If you are unfamiliar with compiling the code locally, checkout this tutorial:

Function on line 75 of this file: sets all the timeouts.

Hope this helps in your experiments!

Thanks. Would it be viable to plumb this through a new accessor in the Spark class so it could be modified by a sketch from setup()? The cloud configuration is already complete by then, right?