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

Function init

samples/MqttClient_Hello/app/application.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118} // namespace
119
120void init()
121{
122 Serial.begin(SERIAL_BAUD_RATE); // 115200 by default
123 Serial.systemDebugOutput(true); // Debug output to serial
124
125 WifiStation.config(WIFI_SSID, WIFI_PWD);
126 WifiStation.enable(true);
127
128 // Run our method when station was connected to AP (or not connected)
129 WifiEvents.onStationGotIP(onConnected);
130}

Callers

nothing calls this directly

Calls 5

systemDebugOutputMethod · 0.80
onStationGotIPMethod · 0.80
beginMethod · 0.45
configMethod · 0.45
enableMethod · 0.45

Tested by

no test coverage detected