Expand | ||
---|---|---|
| ||
|
...
JQuery® requires a workaround to operate correctly with Node.js. See this page for an example.
Node SerialPort
The BrightSign player provides JavaScript serial port bindings for the Node SerialPort package. These bindings can be used using with the @brightsign/serialport API:
Code Block |
---|
const SerialPort = require('@serialport/stream');
const BrightSignBinding = require('@brightsign/serialport');
SerialPort.Binding = BrightSignBinding; |
Also see our reference implementation on GitHub.
Reloading Node.js Enabled Web Applications
...
Code Block | ||
---|---|---|
| ||
module.paths.push("/storage/sd/") module.paths.push("/storage/ssd/") module.paths.push("/storage/usb1/") |
Debugging Applications
When Node.js modules are enabled, they become visible from the Chromium remote inspector, allowing you to debug applications. The console.log works like a normal web application: Output is redirected to both stderr and the remote inspector.
...