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

Arduino Create Agent JS CLIENT how to use[simple_doubt] #684

Closed
neptotech opened this issue Dec 18, 2021 · 4 comments
Closed

Arduino Create Agent JS CLIENT how to use[simple_doubt] #684

neptotech opened this issue Dec 18, 2021 · 4 comments
Assignees
Labels
conclusion: duplicate Has already been submitted conclusion: stale Closed due to lack of activity status: stale Pending closure due to lack of activity status: waiting for information More information must be provided before work can proceed

Comments

@neptotech
Copy link

Welcome,
currently, I want to upload code to Arduino using JavaScript (NodeJS),
I HATE using FIRMATA to upload code,
I want to use the official Arduino create agent and Arduino create agent js client

https://github.com/arduino/arduino-create-agent-js-client

I just downloaded the arduino create agent,
I run the below in empty directory

git clone https://github.com/arduino/arduino-create-agent-js-client.git

I inserted arduino nano(old bootloader) in COM7,
thus I changed(edited) the file .\demo\app.jsx line 189-205 to,

handleUpload() {
    const target = {
      board: 'arduino:avr:nano',
      port: 'COM7',
      network: false
    };

    this.setState({ uploadingPort: target.port });
    daemon.boardPortAfterUpload.subscribe(portStatus => {
      if (portStatus.hasChanged) {
        this.setState({ uploadingPort: portStatus.newPort });
      }
    });

    // Upload a compiled sketch.
    daemon.uploadSerial(target, 'serial_mirror', { bin: HEX });
  }

then I run

npm run dev

since the local host runs on http://localhost:8000/
I edited the config file

C:\Users\USER\AppData\Roaming\ArduinoCreateAgent\config.ini

and set
origins = http://localhost:8000

that is

gc = std  # Type of garbage collection. std = Normal garbage collection allowing system to decide (this has been known to cause a stop the world in the middle of a CNC job which can cause lost responses from the CNC controller and thus stalled jobs. use max instead to solve.), off = let memory grow unbounded (you have to send in the gc command manually to garbage collect or you will run out of RAM eventually), max = Force garbage collection on each recv or send on a serial port (this minimizes stop the world events and thus lost serial responses, but increases CPU usage)
hostname = unknown-hostname  # Override the hostname we get from the OS
regex = usb|acm|com  # Regular expression to filter serial port list
v = true  # show debug logging
appName = CreateAgent/Stable
updateUrl = https://downloads.arduino.cc/
origins = http://localhost:8000 #this is where I have setted
#httpProxy = http://your.proxy:port # Proxy server for HTTP requests
crashreport = false # enable crashreport logging

Untitled

it keep on uploading as shown above ⬆️ ⤴️

please help

@umbynos
Copy link
Contributor

umbynos commented Jan 12, 2022

Hi @neptotech, could you please provide the output from the debug console please? To open it just right click on the agent icon and then "open debug console"

@umbynos umbynos added the status: waiting for information More information must be provided before work can proceed label Jan 12, 2022
@umbynos
Copy link
Contributor

umbynos commented Jan 12, 2022

Duplicated of arduino/arduino-create-agent-js-client#542

@github-actions
Copy link

This issue has been marked as stale because it has been open for more than 14 days with no activity. Remove stale label or comment, otherwise it will be closed in 7 days

@github-actions github-actions bot added the status: stale Pending closure due to lack of activity label Jan 31, 2022
@umbynos umbynos added the conclusion: duplicate Has already been submitted label Jan 31, 2022
@github-actions
Copy link

This issue has been closed becasue has been stale for more than 7 days. If you think this issue deserves some attention feel free to reopen it

@github-actions github-actions bot added the conclusion: stale Closed due to lack of activity label Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted conclusion: stale Closed due to lack of activity status: stale Pending closure due to lack of activity status: waiting for information More information must be provided before work can proceed
Projects
None yet
Development

No branches or pull requests

2 participants