Hello:
I am trying JerryScript with the ESP32 and with esp-idf. The examples in jerryscript.net works well.
But all the examples use a string as a source file (const jerry_char_t script[] = "var str = 'Hello, World!';";).
I would like to know, how to load a script, by example: app.js , from spiffs.
Somebody knows how to do this?
Thanks
How to load a script from spiffs in JerryScript
Re: How to load a script from spiffs in JerryScript
Hi laldana,
take a look at this example:
https://github.com/espressif/esp-idf/tr ... age/spiffs
After calling fopen() use POSIX and C standard library functions to work with files.
Feel free to ask any follow-up questions.
take a look at this example:
https://github.com/espressif/esp-idf/tr ... age/spiffs
After calling fopen() use POSIX and C standard library functions to work with files.
Feel free to ask any follow-up questions.
Re: How to load a script from spiffs in JerryScript
Thanks a Lot !!!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 47 guests