Skip to content

Commit 8ebd4f1

Browse files
committed
Examples update
1 parent a4b8a05 commit 8ebd4f1

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

examples/RemoteDebug_Advanced/RemoteDebug_Advanced.ino

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void setup() {
233233
#endif
234234

235235
#ifndef DEBUG_DISABLED
236-
MDNS.addService("telnet", "tcp", 23); // WiFi server of RemoteDebug, register as telnet
236+
MDNS.addService("telnet", "tcp", 23); // Telnet server of RemoteDebug, register as telnet
237237
#endif
238238

239239
#endif // MDNS
@@ -252,11 +252,11 @@ void setup() {
252252

253253
#ifndef DEBUG_DISABLED // Only for development
254254

255-
// Initialize the WiFi server of RemoteDebug
255+
// Initialize RemoteDebug
256256

257-
Debug.begin(HOST_NAME); // Initiaze the WiFi server
257+
Debug.begin(HOST_NAME); // Initialize the WiFi server
258258

259-
//Debug.setPassword("r3m0t0."); // Password of WiFi (as telnet) connection ?
259+
//Debug.setPassword("r3m0t0."); // Password for WiFi client connection (telnet or webapp) ?
260260

261261
Debug.setResetCmdEnabled(true); // Enable the reset command
262262

@@ -281,13 +281,12 @@ void setup() {
281281
Serial.print("* WiFI connected. IP address: ");
282282
Serial.println(WiFi.localIP());
283283
Serial.println("*");
284-
Serial.println(
285-
"* Please use the telnet client (telnet for Mac/Unix or putty and others for Windows)");
284+
Serial.println("* Please use the telnet client (telnet for Mac/Unix or putty and others for Windows)");
285+
Serial.println("* or the RemoteDebugApp (in browser: http://joaolopesf.net/remotedebugapp)");
286286
Serial.println("*");
287287
Serial.println("* This sample will send messages of debug in all levels.");
288288
Serial.println("*");
289-
Serial.println(
290-
"* Please try change debug level in telnet, to see how it works");
289+
Serial.println("* Please try change debug level in client (telnet or web app), to see how it works");
291290
Serial.println("*");
292291

293292
#endif

examples/RemoteDebug_Basic/RemoteDebug_Basic.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
////////
2-
// Library: Remote debug - debug over telnet - for Esp8266 (NodeMCU) or ESP32
2+
// Library: Remote debug - debug over WiFi - for Esp8266 (NodeMCU) or ESP32
33
// Author : Joao Lopes
44
// File : RemoteDebug_Basic.ino
55
// Notes :
@@ -89,7 +89,7 @@
8989

9090
#endif // ESP
9191

92-
// Remote debug over telnet - not recommended for production, only for development
92+
// Remote debug over WiFi - not recommended for production, only for development
9393

9494
#include "RemoteDebug.h" //https://github.com/JoaoLopesF/RemoteDebug
9595

@@ -160,14 +160,13 @@ void setup() {
160160

161161
#endif
162162

163-
// Initialize the telnet server of RemoteDebug
163+
// Initialize RemoteDebug
164164

165-
Debug.begin(HOST_NAME); // Initiaze the telnet server
165+
Debug.begin(HOST_NAME); // Initialize the WiFi server
166166

167167
Debug.setResetCmdEnabled(true); // Enable the reset command
168168

169169
Debug.showProfiler(true); // Profiler (Good to measure times, to optimize codes)
170-
171170
Debug.showColors(true); // Colors
172171

173172
// End off setup
@@ -178,10 +177,11 @@ void setup() {
178177
Serial.println(WiFi.localIP());
179178
Serial.println("*");
180179
Serial.println("* Please use the telnet client (telnet for Mac/Unix or putty and others for Windows)");
181-
Serial.println("*");
180+
Serial.println("* or the RemoteDebugApp (in browser: http://joaolopesf.net/remotedebugapp)");
181+
Serial.println("*");
182182
Serial.println("* This sample will send messages of debug in all levels.");
183183
Serial.println("*");
184-
Serial.println("* Please try change debug level in telnet, to see how it works");
184+
Serial.println("* Please try change debug level in client (telnet or web app), to see how it works");
185185
Serial.println("*");
186186

187187
}
@@ -222,7 +222,7 @@ void loop()
222222
}
223223
}
224224

225-
// Remote debug over telnet
225+
// RemoteDebug handle
226226

227227
Debug.handle();
228228

0 commit comments

Comments
 (0)