MCPcopy Create free account
hub / github.com/SmingHub/Sming / gotIP

Function gotIP

samples/Basic_Ssl/app/application.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void 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
115void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reason)
116{

Callers

nothing calls this directly

Calls 6

onSslInitMethod · 0.80
onRequestCompleteMethod · 0.80
setResponseStreamMethod · 0.80
StringClass · 0.50
startMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected