We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using this code her with Aduino IDE in VSCode and a ESP 32. When i try to connect to the Server with SSL it dose not work.
Am I missing something?
void setup() { WiFi.mode(WIFI_STA); WiFi.setHostname(hostname.c_str()); Serial.begin(115200); WiFiManager wm; bool res = wm.autoConnect("Glowb Setup"); if (!res) { Serial.println("Failed to connect"); // ESP.restart(); } else { // if you get here you have connected to the WiFi Serial.println("connected...yeey :)"); } String macAddress = String(ESP.getEfuseMac(), HEX); setClock(); // DEV MODE // ws.begin("192.168.1.127", 5005, "/ws?id=" + macAddress); // PROD MODE const char* url = ("/ws?id=" + macAddress).c_str(); ws.beginSSL("example.ch", 443, url, NULL, ""); // event handler ws.onEvent(webSocketEvent); // try ever 5000 again if connection has failed ws.setReconnectInterval(5000); }
The text was updated successfully, but these errors were encountered:
try with ws.beginSSL("example.ch", 443, url);
Sorry, something went wrong.
No branches or pull requests
I'm using this code her with Aduino IDE in VSCode and a ESP 32. When i try to connect to the Server with SSL it dose not work.
Am I missing something?
The text was updated successfully, but these errors were encountered: