diff --git a/platformio.ini b/platformio.ini index a3367e5..c989314 100644 --- 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 index 902f42b..6f3629b 100644 --- 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() {