acid-drop

- Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.acid.vegas/-c.git
Log | Files | Refs | Archive | README | LICENSE

commit 259f0ca4431120ee57e5f3c81fb49469d19126a5
parent 7e660b13bfff2a8819a7ba8e973ad03a8e270ecb
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sat, 25 May 2024 22:59:46 -0400

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

Diffstat:
Mplatformio.ini | 6+++---
Msrc/main.ino | 6+++++-

2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/platformio.ini b/platformio.ini
@@ -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
-\ No newline at end of file
+	;sandeepmistry/LoRa
+\ No newline at end of file
diff --git a/src/main.ino b/src/main.ino
@@ -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() {