mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-06 17:03:14 +02:00
test2
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Retrieve JSON data from the JSON file in SPIFFS
|
||||
fetch('igate_conf.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
// Process the JSON data
|
||||
displayJSONData(data);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching JSON:', error);
|
||||
});
|
||||
|
||||
// Display JSON data in the HTML
|
||||
function displayJSONData(data) {
|
||||
const jsonContainer = document.getElementById('json-container');
|
||||
jsonContainer.innerHTML = JSON.stringify(data, null, 2);
|
||||
}
|
||||
Reference in New Issue
Block a user