master
louisa 1 year ago
parent 2dc3ea70f7
commit 369f982ae2

@ -45,7 +45,7 @@ void sendLoRaData(String data)
Serial.println(data); Serial.println(data);
LoRa.beginPacket(); LoRa.beginPacket();
LoRa.print("node3 " + data); LoRa.print("3 " + data);
LoRa.endPacket(); LoRa.endPacket();
} }

@ -21,7 +21,7 @@
document.getElementById('log-text').textContent = `user ${value} entered zone ${node}`; 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 // Change the background color to red
document.body.style.backgroundColor = 'red'; document.body.style.backgroundColor = 'red';
document.getElementById('location-log').style.display = 'block'; document.getElementById('location-log').style.display = 'block';

Loading…
Cancel
Save