Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to run a .js file from my APEX application

Johan1234May 22 2015 — edited May 23 2015

Hi all

I have created .js file that reads data from a serial port (read_port.js).

read_port.js:

var serialport = require("serialport");

var SerialPort = serialport.SerialPort;

var serialPort = new SerialPort("COM26", {

  baudrate: 9600,

  parser: serialport.parsers.readline("\n")

});

serialPort.on("open", function () {

  console.log('open');

  serialPort.on('data', function(data) {

    console.log(data);

  });

});

I now need to populate a text box with the data from the serial port using the .js file when a button is clicked.

How would one go about doing this?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2015
Added on May 22 2015
6 comments
1,318 views