diff --git a/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino b/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino index 8f2b830..0726583 100644 --- a/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino +++ b/arduino/LoraNFC/sketch_may24a/sketch_may24a.ino @@ -45,7 +45,7 @@ void sendLoRaData(String data) Serial.println(data); LoRa.beginPacket(); -LoRa.print("node3 " + data); +LoRa.print("3 " + data); LoRa.endPacket(); } diff --git a/public/index.html b/public/index.html index 72c322e..adce75e 100644 --- a/public/index.html +++ b/public/index.html @@ -21,7 +21,7 @@ document.getElementById('log-text').textContent = `user ${value} entered zone ${node}`; - if (node === 'node3' && value === '15') { + if (node === '3' && value === '15') { // Change the background color to red document.body.style.backgroundColor = 'red'; document.getElementById('location-log').style.display = 'block';