jUART
jUART copied to clipboard
load() is not defined
Hello,
I copy the npjUART.so in my ~/.mozilla/plugins and I test the code in the README.
But the function load() is not defined in the body.
Could you help me to make it run ?
@laRob95 you might need to recompile the binary.
I did it, but the message still appear. The pluginLoaded function is called unlike before, but the pluginValid function is not. I have no alert message.
I don't understand your function recv_callback : why a function receive send bytes to the serial port ?
I tried to send data to a scale with the send function :
var bytes = ['D','T','E','S','T','1','2','3', 'CR', 'LF'];
for (var i=0; i<bytes.length; i++) {
console.log(bytes[i]);
ser.send(bytes[i]);
}
but nothing happen.
I can't receive data of the scale without send a command message, so I tried a test command message. I have problem with CRLF maybe, I tried '\r' and '\n', but I have an error message :
Error: Error calling method on NPObject!
I also get ReferenceError: load is not defined
in Firebug and have used the exact example provided in the README.md file (I defined port as /dev/ttyACM0
). Environment is Linux and Firefox. The only steps I performed before this was to copy bin/Linux/npjUART.so
into ~/.mozilla/extensions
. Is there anything else I need to be doing?
same problem : load is not defined in Firebug. Environment is Windows 10 and Firefox. Thanks.
load() is not defined
error when I open the example page.
Win10 (64bit) + Firefox/Chrome. dll copied to syswow64 and registered via regsvr32 call. No effect.
load() is not defined
error when I open the example page.Win10 (64bit) + Firefox/Chrome. dll copied to syswow64 and registered via regsvr32 call. No effect.
same configuration and same problem.
Same issue happen in Windows 10. How do we solve this issue?.