workaround for asyncWebSocket bug

This commit is contained in:
Hansi, dl9rdz 2019-12-22 22:21:59 +01:00
parent faaef5c56e
commit 29e39bd0fa
2 changed files with 6 additions and 3 deletions

View File

@ -800,6 +800,7 @@ void onWebSocketEvent(uint8_t clientNum, WStype_t type, uint8_t *payload, size_t
const char* PARAM_MESSAGE = "message";
void SetupAsyncServer() {
Serial.println("SetupAsyncServer()\n");
server.reset();
// Route for root / web page
server.on("/", HTTP_GET, [](AsyncWebServerRequest * request) {
@ -1636,6 +1637,8 @@ void loopDecoder() {
tncclient.write(raw, rawlen);
}
}
// also send to web socket
//TODO
}
Serial.println("updateDisplay started");
if (forceReloadScreenConfig) {
@ -1937,7 +1940,7 @@ void startAP() {
String myIPstr = myIP.toString();
sonde.setIP(myIPstr.c_str(), true);
sonde.updateDisplayIP();
enableNetwork(true);
// enableNetwork(true); done later in WifiLoop.
}
void initialMode() {

View File

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20191221";
const char *version_id = "devel20191222";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=2;
const int SPIFFS_MINOR=3;