| 100 | } |
| 101 | |
| 102 | void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway) |
| 103 | { |
| 104 | Serial << _F("Connected. Got IP: ") << ip << endl; |
| 105 | |
| 106 | connectTimer.start(); |
| 107 | |
| 108 | auto request = new HttpRequest(String(REQUEST_URL)); |
| 109 | request->onSslInit(grcSslInit); |
| 110 | request->onRequestComplete(onDownload); |
| 111 | request->setResponseStream(new CounterStream); |
| 112 | downloadClient.send(request); |
| 113 | } |
| 114 | |
| 115 | void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reason) |
| 116 | { |
nothing calls this directly
no test coverage detected