particle-iot / particle-usb

A library for accessing Particle USB devices
Apache License 2.0
5 stars 1 forks source link

Error while running a simple script #26

Open krekorian opened 4 years ago

krekorian commented 4 years ago

When I run the script listed on the read me, I get the following error

const devices = await usb.getDevices(); ^^^^^ SyntaxError: await is only valid in async function

also import command does not work either, I had to use require

CaptainMack commented 2 years ago

I'm also having problems getting this running - is this for internal use only or can you provide an example of how to use this? We are in dire need of tooling to automate the whole registration in production.