When the module is used in client mode for the first time after it has been set to server mode it never builds the link up. The next attempt after unplugging and replugging works because the module has been reset.

So -

I modified the DigiFi library to do a soft reset (and a 3 second delay to allow the module to reset) whenever it detects that the mode was changed from Server to Client

While I was at it - I found another bug with the client mode and fixed it (it wasn't properly checking if that current host was the same as the last) and also added a function to change the debug mode.

Debug is now off by default and calling

wifi.setDebug(true); right after wifi.begin(9600); will turn on the debug messages in the serial monitor

http://digistump.com/board/index.php?topic=1183