From efd23b0e39805e96a778bd6edc2c4e5491d65f47 Mon Sep 17 00:00:00 2001 From: andreas Date: Thu, 21 Mar 2024 16:54:37 +0100 Subject: [PATCH] #37: include the client SSID in the status page --- src/main.cpp | 3 ++- web/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 672fc7da..599b3409 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -410,7 +410,7 @@ class StatusRequest : public GwRequestMessage protected: virtual void processRequest() { - GwJsonDocument status(300 + + GwJsonDocument status(305 + countNMEA2KIn.getJsonSize()+ countNMEA2KOut.getJsonSize() + channels.getJsonSize()+ @@ -418,6 +418,7 @@ class StatusRequest : public GwRequestMessage ); status["version"] = VERSION; status["wifiConnected"] = gwWifi.clientConnected(); + status["wifiSSID"] = config.getString(GwConfigDefinitions::wifiSSID); status["clientIP"] = WiFi.localIP().toString(); status["apIp"] = gwWifi.apIP(); size_t bsize=2*sizeof(unsigned long)+1; diff --git a/web/index.html b/web/index.html index 6d14fbed..e7d784d1 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,7 @@

NMEA 2000 Gateway

wifi client connected - --- + --- [---]
wifi client IP