Skip to content

Commit 48ee98b

Browse files
committed
Closes #96: make wifi led go green when a client is connected via
WebSocket
1 parent a2dcedc commit 48ee98b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ been possible!**
196196
* Improved WiFi connection stability
197197
This required the latest version of ESP firmware.
198198
And also some changes to the TCP/NMEA server.
199+
* #96: make wifi led go green when we have a websocket client connected
199200
* 2018 04 23 - v1.2.3
200201
* Repeat all NMEA and NMEA2000 data to the computer when the serial port is
201202
opened at 38400 bauds.

src/esp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void loop() {
153153
lastMessageTimer = 0;
154154
}
155155

156-
if (server.clientsCount() > 0) {
156+
if (server.clientsCount() + webServer.countClients() > 0) {
157157
rgb.setPixelColor(0, clientsConnectedColor);
158158
}
159159
else {

0 commit comments

Comments
 (0)