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

Function init

samples/Basic_Ssl/app/application.cpp:122–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} // namespace
121
122void init()
123{
124 Serial.begin(SERIAL_BAUD_RATE);
125 Serial.systemDebugOutput(true); // Allow debug print to serial
126 Serial.println(F("Ready for SSL tests"));
127
128#ifdef ENABLE_MALLOC_COUNT
129 MallocCount::enableLogging(true);
130#endif
131
132 heapTimer.initializeMs<5000>(printHeap).start();
133
134 // Setup the WIFI connection
135 WifiStation.enable(true);
136 WifiStation.config(WIFI_SSID, WIFI_PWD); // Put your SSID and password here
137
138 WifiEvents.onStationGotIP(gotIP);
139 WifiEvents.onStationDisconnect(connectFail);
140}

Callers

nothing calls this directly

Calls 10

enableLoggingFunction · 0.85
systemDebugOutputMethod · 0.80
printlnMethod · 0.80
onStationGotIPMethod · 0.80
onStationDisconnectMethod · 0.80
FFunction · 0.50
beginMethod · 0.45
startMethod · 0.45
enableMethod · 0.45
configMethod · 0.45

Tested by

no test coverage detected