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

Function init

samples/HttpServer_FirmwareUpload/app/application.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93} // namespace
94
95void init()
96{
97 Serial.begin(SERIAL_BAUD_RATE); // 115200 by default
98 Serial.systemDebugOutput(true); // Enable debug output to serial
99
100 spiffs_mount(); // Mount file system, in order to work with files
101
102 WifiStation.enable(true);
103 WifiStation.config(WIFI_SSID, WIFI_PWD);
104 // WifiStation.enableDHCP(true);
105
106 // Run WEB server on system ready
107 System.onReady(startWebServer);
108}

Callers

nothing calls this directly

Calls 6

spiffs_mountFunction · 0.85
systemDebugOutputMethod · 0.80
onReadyMethod · 0.80
beginMethod · 0.45
enableMethod · 0.45
configMethod · 0.45

Tested by

no test coverage detected