Added random numbers to nick for now until we have a more dynamic approach

This commit is contained in:
Dionysus 2024-05-25 22:59:46 -04:00
parent 7e660b13bf
commit 259f0ca443
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 7 additions and 3 deletions

View File

@ -23,6 +23,6 @@ build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
mikalhart/TinyGPSPlus@^1.0.2
;mikalhart/TinyGPSPlus@^1.0.2
marian-craciunescu/ESP32Ping@^1.7.0
sandeepmistry/LoRa
;sandeepmistry/LoRa

View File

@ -35,6 +35,7 @@ String inputBuffer = "";
// WiFi credentials
String ssid = "";
String password = "";
String nick = "";
// IRC connection
const char* server = "irc.supernets.org";
@ -43,7 +44,6 @@ bool useSSL = true;
const char* channel = "#comms";
// IRC identity
const char* nick = "ACID_DROP";
const char* user = "tdeck";
const char* realname = "ACID DROP Firmware 1.0.0"; // Need to eventually set this up to use a variable
@ -82,6 +82,10 @@ void setup() {
delay(1000);
scanWiFiNetworks();
displayWiFiNetworks();
randomSeed(analogRead(0));
int randomNum = random(1000, 10000);
nick = "ACID_" + String(randomNum);
}
void loop() {