diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino b/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino index 5b4dcf4..8f2b830 100644 --- a/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino +++ b/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino @@ -45,11 +45,7 @@ void sendLoRaData(String data) Serial.println(data); LoRa.beginPacket(); -<<<<<<< HEAD LoRa.print("node3 " + data); -======= - LoRa.print(data); ->>>>>>> 26fbc8fed3644b1eef44268b84d09fc87be556a3 LoRa.endPacket(); } diff --git a/public/index.html b/public/index.html index f09e7e8..27c4e27 100644 --- a/public/index.html +++ b/public/index.html @@ -22,12 +22,14 @@ if (node === 'node3' && value === '15') { // Change the background color to red document.body.style.backgroundColor = 'red'; - } else if (node === 'node4' && value === '21') { - // Change the background color to blue - document.body.style.backgroundColor = 'blue'; - } else { - // Restore the default background color - document.body.style.backgroundColor = rgb(26, 26, 26); + document.getElementById('location-log').display = block; + + } else if (node === 'node4' && value === '21') { + // Change the background color to blue + document.body.style.backgroundColor = 'blue'; + } else { + // Restore the default background color + document.body.style.backgroundColor = rgb(26, 26, 26); } }); function sendMessage() { @@ -71,7 +73,10 @@ --> +
+

user 15 entered zone 4

+