This commit is contained in:
James 2024-04-27 21:23:38 +01:00
parent f829fc5156
commit 49f4c9ab34
2 changed files with 3 additions and 3 deletions

View File

@ -34,6 +34,7 @@ void setup() {
WiFi.onEvent(WiFiEvent);
ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE);
BLEDevice::init("");
wsManager.begin();
}
void loop() {
@ -52,8 +53,6 @@ void loop() {
delay(250);
}
wsManager.begin();
while(!wsManager.isConnected()){
Serial.println("Wait for socket...");
delay(250);

View File

@ -35,7 +35,8 @@ private:
static void webSocketTask(void *param) {
WiFiClient client;
//client.setCACert(ca_cert);
webSocket.beginSSL(serverUrl.c_str(), serverPort, serverPath.c_str(), ca_cert);
//webSocket.beginSSL(serverUrl.c_str(), serverPort, serverPath.c_str(), ca_cert);
webSocket.begin(serverUrl.c_str(), serverPort, serverPath.c_str());
webSocket.onEvent(webSocketEvent);
webSocket.setReconnectInterval(1000);