Short timeout in the ClientConnect example
Brought to you by:
smeiners
The timeout set a the line 95 of the ClinetConnect example appears to be too small to let the network time to answer through internet causing the connection to fail without reason. Raising the figure from 30 to 30000 fixes the problem.
switch(c2s.loginAny(userName, resource, password, 30000))