Make zap notify more lightning like, verify SSL certificates, remove price fetch code

This commit is contained in:
Djuri 2024-09-11 03:23:41 +02:00
parent 5425ea7fbf
commit 1f2110fc5a
21 changed files with 494 additions and 190 deletions

View file

@ -9,7 +9,9 @@ void setupV2Notify()
if ( preferences.getBool("stagingSource", DEFAULT_STAGING_SOURCE)) {
Serial.println(F("Connecting to V2 staging source"));
hostname = "ws-staging.btclock.dev";
}
} else {
Serial.println(F("Connecting to V2 source"));
}
webSocket.beginSSL(hostname, 443, "/api/v2/ws");
webSocket.onEvent(onWebsocketV2Event);
@ -120,7 +122,7 @@ void handleV2Message(JsonDocument doc) {
processNewPrice(newPrice, getCurrencyChar(currency));
}
}
}
}
void taskV2Notify(void *pvParameters) {