SerialPorts.jl icon indicating copy to clipboard operation
SerialPorts.jl copied to clipboard

Cannot run the Listener.jl example

Open YuYuB opened this issue 6 years ago • 1 comments

Hi,

When I run the Listener.jl example (from Julia REPL using Atom/Juno), I got the following message: "usage: listener.jl --port --baud " If I enter "listener.jl --port COM3 --baud 115200", I got the following error message: "ERROR: syntax: invalid operator "--".

How can I run correctly this example ?

Thank you !

YuYuB avatar Oct 14 '19 12:10 YuYuB

I think the issue is running from an already running session in Atom not passing the ARGS. You would have to run outside with the julia command:

julia listener.jl --port COM3 --baud 115200

Alternatively you could do something from the julia REPL/Atom like so:

include("listener.jl")
terminal(["--port", "COM3", "--baud", "115200"])

sjkelly avatar Dec 27 '19 16:12 sjkelly