pause()
actually do? I'm trying to plot a real-time plot with Plotly and when I use pause()
it resets the plot. It does pause the reading but the unwanted effect is that I now need to save the plot data before hitting pause()
so that it doesn't disappear, but stays there frozen instead.
as any
cast worked fine :)
pause()
and resume()
on everything that's an event emitter!
resume()
, which takes the object out of the weakmap and sets _events = ...
I’m getting this error when I run my script:
1637373588949 Connected COM4
1637373588955 Available COM3
1637373588956 Connected COM3
1637373592592 Repl Initialized
>> 1637373598958 Device or Firmware Error A timeout occurred while connecting to the Board.
I’ve checked the troubleshooting instructions on:
https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting
But, I’m still unable to fix it after installing StandardFirmata. FYI- I’m using an Arduino clone (CH341)
Am I on the right track? Any advice would be much appreciated.
pause()
:)
board = new Board({
repl: false,
debug: false
});
board = new Board({
port: new SerialPort({
path: "/dev/tty.usbserial-1410",
baudRate: 115200
}),
repl: false,
debug: false
});
Changing the subject to a more J5 focused discussion I'm getting the following error:
1646263818699 Device or Firmware Error A timeout occurred while connecting to the Board.
Please check that you've properly flashed the board with the correct firmware.
See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting
If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.
code: 'ERR_UNHANDLED_ERROR',
class: 'Device or Firmware Error',
when testing my board's connectivity
test/board-connection.js:9:5
, test/board-connection.js:17:5
and test/board.serial.js:13:18
with the error message TypeError: Cannot stub non-existent own property list
. Any idea of what I might be missing?
close
event of the Board object to use? I've created a Board object, I'm able to communicate with it and I've added a callback function for the .on("close", () => { ... })
event, but I'm not seeing the callback being called after I disconnect from the USB port.