-
• #2
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:
Menu >> Documentation >> API Reference
Which contains detail on all current functions to perform the task you are after.
Class JSON for data formatting'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:
http://www.espruino.com/Reference#l_File_read
http://www.espruino.com/Reference#fs
ESP8266 Class'I need to be able to store, retrieve'
I have been successful at off board storage with the AT24 series chips:
http://www.espruino.com/EEPROMs
http://www.espruino.com/AT24
Optional to RAM, Flashhttp://www.espruino.com/Data+Collection#line=123
http://www.espruino.com/File+IO
See post #17 by @hungryforcodes that the above link may not have been tested using ESP8266 yet.
http://forum.espruino.com/comments/15912413/
Another useful linkand of course the Javascript topic within the forum
-
• #3
I am now...
I had tried it twice but nothing came up...
I just tried again json, csv, etc and lots came up in the search so thanks so much.
I'll check out the links you've provided. -
• #4
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:
how to illuminate the onboard LED for Pico
site:espruino.com
New interpreter error: FIFO_FULLsite:forum.espruino.com
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 : "dave@esp8266.ca",
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