diff --git a/Sming/Libraries/DIAL/sample/app/application.cpp b/Sming/Libraries/DIAL/sample/app/application.cpp index 95a5b8daaf..9aee8d7e53 100644 --- a/Sming/Libraries/DIAL/sample/app/application.cpp +++ b/Sming/Libraries/DIAL/sample/app/application.cpp @@ -7,7 +7,9 @@ #define WIFI_PWD "PleaseEnterPass" #endif -static Dial::Client client; +namespace +{ +Dial::Client client; void onRun(Dial::App& app, HttpResponse& response) { @@ -71,6 +73,8 @@ void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reas Serial.println(WifiEvents.getDisconnectReasonDesc(reason)); } +} // namespace + void init() { Serial.begin(SERIAL_BAUD_RATE);