Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant connect to device #265

Open
ale-novo opened this issue Dec 12, 2022 · 1 comment
Open

Cant connect to device #265

ale-novo opened this issue Dec 12, 2022 · 1 comment

Comments

@ale-novo
Copy link

Hello, im trying to use firmata js

i have flashed my arduino compatible device with a sketch generated from firmatabuilder.com
Protocol version is 2.6.0 and firmware version is 2.10.1 (ConfigurableFirmata)

my device is '/dev/serial/by-id/usb-Arduino_RaspberryPi_Pico_577461E62A4515DF-if00' and baud rate 115200

im able to connect using the perl-firmata client library and it works fine.

However i cant seem to make the firmata js examples connect.

I dont understand where to specify the device and baudrate in the examples.

Can someone please explain how to set the device and baudrate in one of the examples to connect via USB (serial) ?

thanks a lot.

@awong1900
Copy link

awong1900 commented Apr 14, 2023

Try like this:

  const board = new Board(port.path, {
    serialport: {
      baudRate: 115200,
    },
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants