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

Function init

tests/HostTests/app/application.cpp:48–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} // namespace
47
48void init()
49{
50 Serial.setTxBufferSize(0);
51 Serial.begin(SERIAL_BAUD_RATE);
52 Serial.systemDebugOutput(true);
53
54 debug_e("WELCOME to SMING! Host Tests application running.");
55
56 spiffs_mount();
57 fileSystemFormat();
58
59 registerTests();
60
61#ifdef DISABLE_WIFI
62 beginTests();
63#else
64 WifiAccessPoint.enable(false);
65 if(netif_default == nullptr) {
66 WifiStation.enable(false);
67 beginTests();
68 } else {
69 WifiStation.enable(true);
70 WifiStation.config(WIFI_SSID, WIFI_PWD);
71 WifiEvents.onStationGotIP([](IpAddress, IpAddress, IpAddress) { beginTests(); });
72 }
73#endif
74}

Callers

nothing calls this directly

Calls 10

spiffs_mountFunction · 0.85
fileSystemFormatFunction · 0.85
registerTestsFunction · 0.85
beginTestsFunction · 0.85
setTxBufferSizeMethod · 0.80
systemDebugOutputMethod · 0.80
onStationGotIPMethod · 0.80
beginMethod · 0.45
enableMethod · 0.45
configMethod · 0.45

Tested by

no test coverage detected