Skip to content

Commit

Permalink
Update examples, make config explicit with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkx committed Mar 4, 2022
1 parent 34234bb commit 6d0a7cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 5 additions & 2 deletions examples/LoggingGalore/LoggingGalore.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
* not just got to the serial port; but also to a configurable mix of a
* telnetserver, a webserver, syslog or MQTT.
*/
#ifndef WIFI_NETWORK
#warning "You really want to change this !"
#define WIFI_NETWORK "MyWiFiNetwork"
#define WIFI_PASSWD "MySecretPassword"
#endif

#include <WiFi.h>
#include <ESPmDNS.h>
#include <TLog.h>

// Uncomment to activate syslog logging
Expand Down
8 changes: 6 additions & 2 deletions examples/SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
* telnetserver, a webserver, syslog or MQTT.
*/

#include <WiFi.h> // asume a wifi internet connection
#include <ESPmDNS.h> // advertize our service on Zeroconf/mDNS/Bonjour
#ifndef WIFI_NETWORK
#warning "You really want to change this !"
#define WIFI_NETWORK "MyWiFiNetwork"
#define WIFI_PASSWD "MySecretPassword"
#endif

#include <TLog.h> // The T-Logging library.

// Run a telnet service on the default port (23) which shows what is
Expand Down
8 changes: 6 additions & 2 deletions examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
* telnetserver, a webserver, syslog or MQTT.
*/

#include <WiFi.h> // asume a wifi internet connection
#include <ESPmDNS.h> // advertize our service on Zeroconf/mDNS/Bonjour
#ifndef WIFI_NETWORK
#warning "You really want to change this !"
#define WIFI_NETWORK "MyWiFiNetwork"
#define WIFI_PASSWD "MySecretPassword"
#endif

#include <TLog.h> // The T-Logging library.

// Run a telnet service on the default port (23) which shows what is
Expand Down

0 comments on commit 6d0a7cc

Please sign in to comment.