I also wonder how to do this. The tool is targeted to Linux, but there should be a way. Maybe Cygwin can aid here.,It is complete Linux implementation running unter Windows. But, i have not clue.
Hi, i've tried to simply init a serial communication (Windows 10), send some text and expect and answer. But it always give me 0 bytes in return: var serialPort = scriptInf.createSerialPort(); serialPort.setPortName("COM10"); serialPort.setBaudRate(115200); serialPort.setDataBits(8); serialPort.setParity("None"); serialPort.setStopBits("1"); serialPort.setFlowControl("None"); serialPort.setDTR(true); serialPort.setRTS(true); serialPort.readAll(); // flush RX-Buffer serialPort.writeString("ATZ\r");...
You should also check for non-existant functions. If you just call an unknown funciton in the code (e.g. "foo();") and that function does not exist (or just misspelled) the code execution also freezes.
Way cool, great job pal! Glad to get the product better. Until then i just move the parts back into the main script, so no hurry needed.
I want to move parts of my code into external js-files and include them using scriptThread.loadScript(...); For functions this works pretty well, but not for things outside functions like const, var/let definitions. They are not exported to the main function, nor useable within the script where they are defined. More worse, when i define a const in the main script, it is not useable within a function in an loaded script. Is this per design, or is it a bug?
Also strange, regarding the docs your linked it should know replaceAll() but if i use this method, the script internally aborts/stops without giving any error (at least i see none). I had to use replace(REGEX/g, "..") instead.
Also strange, regarding the docs your linked it should know replaceAll() but if i use this method, the script internally aborts/stops.
I want to move parts of my code into external js-files and include them using scriptThread.loadScript(...); For functions this works pretty well, but not for things outside functions like const, var/let definitions. Is this per design, or is it a bug?