-->
Page 1 of 1

JS in Esp8266

PostPosted: Tue Sep 22, 2020 4:10 pm
by HiperDoo
Hello, I have a question, I am doing a project where I need to work with a lot of data, but there is a part where it is impossible for me to work with the limiting variables that the Arduino offers. As I am good at programming in JS it occurred to me to have a part of the code in JS to solve that issue. I've been looking on the internet how to have a part of the code in JS, but all that has to do with JS is to create web pages, I do not want to create a web page and I do not want this part of the code to connect to the internet, just I want to use JS in this part because it is impossible for me to program with the variables that Arduino has.

In short, I would be very grateful if someone could give me a library and a little code that allows me a communication between Arduino variables and JS so that I can process it in JS and then return it to an Arduino variable.
For example:

int A = JS.var

(Something similar, I do not know if I gave it to understand, but this would help me to put all the data from Arduino to JS, process it in JS and then return it to an Arduino variable as an int or String, all this would be in Esp8266).

Thanks!!!

Re: JS in Esp8266

PostPosted: Thu Sep 24, 2020 5:16 pm
by pipi61
Hi!
The Arduino run on the esp, The JS run the other device in browser. If send data from browser to arduino use xml request...

Re: JS in Esp8266

PostPosted: Fri Sep 25, 2020 2:49 am
by Pablo2048
No, you are wrong. If HiperDoo wasn't lazy and did the Google search for what he need to achieve, the he maybe find this https://github.com/sfranzyshen/ESP8266- ... JavaScript . Javascript engine library in Arduino environment on ESP8266.

Re: JS in Esp8266

PostPosted: Fri Sep 25, 2020 4:05 am
by QuickFix
Pablo2048 wrote:wasn't lazy

A lazy user on a forum? :shock:
That's a first. ;)