Pinoccio/library-gainspan-s2w — pull request #3 by erictj (2014-02-14 22:42:27+00:00)
Title: Add support for SSL in connection state

Sometimes I was seeing this in the output of the serial monitor:

```
> wifi.status;wifi.report
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=CONNECTED MODE=AP
BSSID=90:84:0d:d6:8f:ab SSID="Pinoccio" CHANNEL=11 SECURITY=WPA2-PERSONAL
RSSI=-41
IP addr=10.0.1.114 SubNet=255.255.255.0 Gateway=10.0.1.1
DNS1=10.0.1.1 DNS2=0.0.0.0
Rx Count=24 Tx Count=530
CID	TYPE	MODE	LOCAL PORT	REMOTE PORT	REMOTE IP
0	TCP CLIENT	52380	22757	173.255.220.185
{"type":"wifi","version":0,"connected":true,"hq":true}
```

Where the TCP-SSL had yet to be initiated, but the wifi.report was still returning *true* for the **hq** key.

This pull request is to allow for the wifi.report to only show connected to HQ if indeed the SSL negotiation was also successful.

It was inspired by the issue here: https://github.com/Pinoccio/hq/issues/114#issuecomment-35113019