From 6d0a7cc31ccbd3e1ac0b16004267ca4dea34ce3c Mon Sep 17 00:00:00 2001 From: Dirk-Willem van Gulik Date: Fri, 4 Mar 2022 19:00:36 +0100 Subject: [PATCH] Update examples, make config explicit with warning --- examples/LoggingGalore/LoggingGalore.ino | 7 +++++-- .../SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino | 8 ++++++-- examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino | 8 ++++++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/examples/LoggingGalore/LoggingGalore.ino b/examples/LoggingGalore/LoggingGalore.ino index 84de024..c748295 100644 --- a/examples/LoggingGalore/LoggingGalore.ino +++ b/examples/LoggingGalore/LoggingGalore.ino @@ -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 -#include #include // Uncomment to activate syslog logging diff --git a/examples/SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino b/examples/SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino index 60488a9..23fd974 100644 --- a/examples/SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino +++ b/examples/SerialToTelnet-Simplest/SerialToTelnet-Simplest.ino @@ -17,8 +17,12 @@ * telnetserver, a webserver, syslog or MQTT. */ -#include // asume a wifi internet connection -#include // 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 // The T-Logging library. // Run a telnet service on the default port (23) which shows what is diff --git a/examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino b/examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino index 8e9f23b..d1d8777 100644 --- a/examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino +++ b/examples/SerialToTelnetAndWeb/SerialToTelnetAndWeb.ino @@ -17,8 +17,12 @@ * telnetserver, a webserver, syslog or MQTT. */ -#include // asume a wifi internet connection -#include // 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 // The T-Logging library. // Run a telnet service on the default port (23) which shows what is