creating, saving, reading files using esp8266? Is there a way? #6435
Replies: 1 comment
-
Posted at 2021-04-12 by Robin Mon 2021.04.12 Hi @coolio were you aware there is search dialog at the upper right of most Espruino site pages? A wealth of information may be obtained with use of this tool. The full Javascript API may be obtained from the main page:
Which contains detail on all current functions to perform the task you are after. Class JSON for data formatting > http://www.espruino.com/Reference#t_l_JSON_parse > 'understand if there is a way to load an array' See ARRAY class: > 'but there's no file system on the espruino' See the FILE class:
ESP8266 Class > http://www.espruino.com/Reference#t_l_ESP8266_crc32 > 'I need to be able to store, retrieve' I have been successful at off board storage with the AT24 series chips:
Optional to RAM, Flash > http://www.espruino.com/Data+Collection#line=123
Another useful link and of course the Javascript topic within the forum Posted at 2021-04-13 by coolio I am now... Posted at 2021-04-13 by Robin also, . . . . should that search box not return what might be expected, Launch a new Google page instance and type a concise request using the 'site:' keyword qualifier. Google search something like:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-04-12 by coolio
I have the esp8266 serving up some webpages on the esp8266.
I need to be able to store, retrieve & update an object, json file, txt file or XML file
but there's no file system on the espruino.
I am thinking to may be just create variables or use an array to store the info within
a js script. I'm wondering if there is a better way?
I've studied the http module and am trying to understand if there is a way to
load an array, object that I store in a variable with the USERS and BOARD data.
I would need approx 10 users.
USERS
id : 100
name : "Dave Coley",
email : "[email protected]",
phone : "123-456-7890",
dateAdded : "2021-04-12"
BOARD
id : "B1001",
bName : "daves_esp8266",
bLocation : "daves_garage",
Another question I have is if I store the data in a javascript file (users.js & board.js)
is it secure?
Any help on this would be appreciated.
D
Beta Was this translation helpful? Give feedback.
All reactions