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

Function init

samples/HttpServer_AJAX/app/application.cpp:116–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114} // namespace
115
116void init()
117{
118 spiffs_mount(); // Mount file system, in order to work with files
119
120 Serial.begin(SERIAL_BAUD_RATE); // 115200 by default
121 Serial.systemDebugOutput(true); // Enable debug output to serial
122
123 WifiStation.enable(true);
124 WifiStation.config(WIFI_SSID, WIFI_PWD);
125 WifiAccessPoint.enable(false);
126
127 for(auto pin : inputs) {
128 pinMode(pin, INPUT);
129 }
130
131 // Run our method when station was connected to AP
132 WifiEvents.onStationGotIP(gotIP);
133}

Callers

nothing calls this directly

Calls 7

spiffs_mountFunction · 0.85
systemDebugOutputMethod · 0.80
onStationGotIPMethod · 0.80
pinModeFunction · 0.50
beginMethod · 0.45
enableMethod · 0.45
configMethod · 0.45

Tested by

no test coverage detected