Matt
June 9, 2019, 7:09pm
1
I’ve made this code that creates a JSON file with some info in it.
let getInfo = JSON.stringify({
status : GPIO.read(data);
});
File.write(getInfo, "info.json");
so the result is now inside the device
Is it possible to print the JSON data that’s inside the device to html?
how is the HTML going to be delivered?
Matt
June 11, 2019, 6:59pm
3
I want to make a status log with index.html using the WiFi IP from ESP8266. The result would be such as the link below. It just needs to be printed on the homepage
https://learnwebcode.github.io/json-example/animals-1.json
If it’s too complicated to print the JSON file inside the device, then is there a way to save the JSON file to the computer’s directory folder?
Can you just do a ‘mos get info.json’ to get the JSON?