Environment:
Firefox 48 for Ubuntu
I've followed these steps in README.md:
- Copy
bin/Linux/npjUART.so to: ~/.mozilla/extensions.
- And
js file looks like:
//Get a Serial object
var ser = plugin().Serial;
// Open a port
ser.open("/dev/ttyACM0");
// Set port options
var baud = 9600;
var parity = 0;
var csize = 8;
var flow = 0;
var stop = 0;
ser.set_option(baud, parity, csize, flow, stop);
// Send a byte to serial port
char = "";
ser.send(char);
Did I need to take any other steps?
Do I have to "build it"?
When I run the HTML file, Firebug says:
ReferenceError: plugin is not defined
Environment:
Firefox 48 for Ubuntu
I've followed these steps in README.md:
bin/Linux/npjUART.soto:~/.mozilla/extensions.jsfile looks like:Did I need to take any other steps?
Do I have to "build it"?
When I run the HTML file, Firebug says: