Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutter not clickable on certain block of code #139

Open
KamKaminski opened this issue Jun 9, 2023 · 2 comments
Open

Shutter not clickable on certain block of code #139

KamKaminski opened this issue Jun 9, 2023 · 2 comments

Comments

@KamKaminski
Copy link

Shutter is not clickable for whatever reason on this bit of code, replicated the issue on different system.
void setupWiFi()
{
#ifdef SOFTAP_MODE
Serial.println("Configuring access point...");
uint8_t mac[6];
char buff[128];
WiFi.macAddress(mac);
sprintf(buff, "T-Higrow-%02X:%02X", mac[4], mac[5]);
WiFi.softAP(buff);
Serial.printf("SERIVE IS running at 192.168.4.1 %s \n", buff);

#else
WiFi.mode(WIFI_STA);

Serial.print("Connect SSID:");
Serial.print(WIFI_SSID);
Serial.print(" Password:");
Serial.println(WIFI_PASSWD);
Serial.println(millis());
WiFi.begin(WIFI_SSID2, WIFI_PASSWD2);
if (WiFi.waitForConnectResult() != WL_CONNECTED) {

    Serial.println("WiFi connect fail!");
    delay(3000);
    esp_restart();
}

Serial.print("WiFi connect success ! , ");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());

config.api_key = API_KEY;
config.database_url = DATABASE_URL;
if (Firebase.signUp(&config, &auth, "", ""))
{
    Serial.println("ok");
    signupOK = true;
}
    else
    {
        Serial.printf("%s\n", config.signer.signupError.message.c_str());
    }
Firebase.begin(&config, &auth);
Firebase.reconnectWiFi(true);

#endif
server.begin();
}

@pfui-bah-kiste
Copy link

Same problem as in #140 and #148.

@DaphneOdera17
Copy link

see #140 (comment) .
This line "sprintf(buff, "T-Higrow-%02X:%02X", mac[4], mac[5]);" cause the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants